A64arm开发板注销打印cpu budget信息

[48997.486550] CPU Budget hotplug: cluster0 min:0 max:4
[48998.470896] CPU Budget:update CPU 0 cpufreq max to 1104000 min to 480000
[48998.480427] CPU Budget hotplug: cluster0 min:0 max:4
[48998.972749] CPU Budget:update CPU 0 cpufreq max to 1008000 min to 480000
[48998.982278] CPU Budget hotplug: cluster0 min:0 max:4
[48999.474585] CPU Budget:update CPU 0 cpufreq max to 1104000 min to 480000
[48999.484132] CPU Budget hotplug: cluster0 min:0 max:4
[48999.976416] CPU Budget:update CPU 0 cpufreq max to 1008000 min to 480000
[48999.985911] CPU Budget hotplug: cluster0 min:0 max:4
[49001.954274] CPU Budget:update CPU 0 cpufreq max to 1104000 min to 480000
[49001.963834] CPU Budget hotplug: cluster0 min:0 max:4
[49002.456090] CPU Budget:update CPU 0 cpufreq max to 1008000 min to 480000
[49002.465579] CPU Budget hotplug: cluster0 min:0 max:4
[49002.958042] CPU Budget:update CPU 0 cpufreq max to 1104000 min to 480000
[49002.967642] CPU Budget hotplug: cluster0 min:0 max:4
[49003.459808] CPU Budget:update CPU 0 cpufreq max to 1008000 min to 480000
[49003.469319] CPU Budget hotplug: cluster0 min:0 max:4
[49003.961612] CPU Budget:update CPU 0 cpufreq max to 1104000 min to 480000
[49003.971160] CPU Budget hotplug: cluster0 min:0 max:4
[49004.463450] CPU Budget:update CPU 0 cpufreq max to 1008000 min to 480000
[49004.472942] CPU Budget hotplug: cluster0 min:0 max:4
[49005.457312] CPU Budget:update CPU 0 cpufreq max to 1104000 min to 480000
[49005.466863] CPU Budget hotplug: cluster0 min:0 max:4
[49005.959142] CPU Budget:update CPU 0 cpufreq max to 1008000 min to 480000
[49005.968647] CPU Budget hotplug: cluster0 min:0 max:4
[49006.952997] CPU Budget:update CPU 0 cpufreq max to 1104000 min to 480000
[49006.962571] CPU Budget hotplug: cluster0 min:0 max:4
[49007.454915] CPU Budget:update CPU 0 cpufreq max to 1008000 min to 480000
[49007.464416] CPU Budget hotplug: cluster0 min:0 max:4
[49008.448652] CPU Budget:update CPU 0 cpufreq max to 1104000 min to 480000
[49008.458179] CPU Budget hotplug: cluster0 min:0 max:4
[49008.950489] CPU Budget:update CPU 0 cpufreq max to 1008000 min to 480000
[49008.959983] CPU Budget hotplug: cluster0 min:0 max:4
[49009.944333] CPU Budget:update CPU 0 cpufreq max to 1104000 min to 480000

傻了吧唧的A64的原厂镜像启动后打印一堆垃圾信息,导致控制台命令都难输入,傻了吧唧的,还不知道在哪里取消打印这些鬼东西。
经过一天的摸索,在github上看到了类似的信息,终于找到了打印这些鬼东西的地方。

diff --git a/drivers/thermal/cpu_budget_cooling.c b/drivers/thermal/cpu_budget_cooling.c
index fb316b6..ce1f9bb 100755
--- a/drivers/thermal/cpu_budget_cooling.c
+++ b/drivers/thermal/cpu_budget_cooling.c
@@ -30,8 +30,6 @@
 #include <linux/cpu.h>
 #include <linux/cpumask.h>
 #include <linux/cpu_budget_cooling.h>
-#include "thermal_core.h"
-
 #define CREATE_TRACE_POINTS
 #include <trace/events/budget_cooling.h>
 #define BOOT_CPU    0
@@ -249,8 +247,6 @@ static int cpu_budget_apply_cooling(struct cpu_budget_cooling_device *cpu_budget
 				unsigned long cooling_state)
 {
     unsigned long flags;
-    struct thermal_instance *instance;
-    int temperature = 0;

 	/* Check if the old cooling action is same as new cooling action */
 	if (cpu_budget_device->cpu_budget_state == cooling_state)
@@ -275,11 +271,7 @@ static int cpu_budget_apply_cooling(struct cpu_budget_cooling_device *cpu_budget
                               cpu_budget_device->cluster1_freq_limit,
                               cpu_budget_device->cluster1_num_limit,
                               cpu_budget_device->gpu_throttle);
-	list_for_each_entry(instance, &(cpu_budget_device->cool_dev->thermal_instances), cdev_node) {
-        if(instance->tz->temperature > temperature)
-            temperature = instance->tz->temperature;
-    }
-    pr_info("CPU Budget: Temperature: %u Limit state:%lu item[%d,%d,%d,%d %d]\n",temperature,cooling_state,
+    pr_debug("CPU Budget: Limit state:%lu item[%d,%d,%d,%d %d]\n",cooling_state,
     cpu_budget_device->cluster0_freq_limit,
     cpu_budget_device->cluster0_num_limit ,
     cpu_budget_device->cluster1_freq_limit ,
@@ -381,7 +373,7 @@ static int cpufreq_thermal_notifier(struct notifier_block *nb,
         {
             cpufreq_verify_within_limits(policy, min_freq, max_freq);
 			policy->user_policy.max = policy->max;
-            pr_info("CPU Budget:update CPU %d cpufreq max to %lu min to %lu\n",policy->cpu,max_freq, min_freq);
+            pr_debug("CPU Budget:update CPU %d cpufreq max to %lu min to %lu\n",policy->cpu,max_freq, min_freq);
         }
     }

在内核的driver里面会有一个thermal,关于cpu发热损耗的东西。cpu_budget_cooling.c里面把相对应的打印信息注释掉,重新编译,大功告成。

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

@Rangers

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值