[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 @@
-
-
@@ -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里面把相对应的打印信息注释掉,重新编译,大功告成。
|