RE: [PATCH 2/2] _PPC frequency change issues
From: Pallipadi, Venkatesh
Date: Tue Jan 24 2006 - 12:04:55 EST
Thanks for identifying the issues and sendint these patches Thomas.
Patch 1 looks clean. New lines seem to contain spaces instead of tabs.
The same issue is there in patch 2 as well. Can you resent it with
indentation fixed.
Patch 2 I am concenred with following hunk.
@@ -161,16 +158,17 @@
cpu_max_freq[cpu] = policy->max;
dprintk("limit event for cpu %u: %u - %u kHz, currently
%u kHz, last set to %u kHz\n", cpu, cpu_min_freq[cpu],
cpu_max_freq[cpu], cpu_cur_freq[cpu], cpu_set_freq[cpu]);
if (policy->max < cpu_set_freq[cpu]) {
- __cpufreq_driver_target(¤t_policy[cpu],
policy->max,
- CPUFREQ_RELATION_H);
+ if (!__cpufreq_driver_target(policy, policy->max,
+ CPUFREQ_RELATION_H))
+ cpu_cur_freq[cpu] = policy->max;
Should this me cpu_cur_freq[cpu] = policy->cur instead. As the max
setting may not be supported by the driver, it might have set some
closer available freq
Same comment for below two driver target calls as well.
} else if (policy->min > cpu_set_freq[cpu]) {
- __cpufreq_driver_target(¤t_policy[cpu],
policy->min,
- CPUFREQ_RELATION_L);
+ if (!__cpufreq_driver_target(policy, policy->min,
+ CPUFREQ_RELATION_L))
+ cpu_cur_freq[cpu] = policy->min;
} else {
- __cpufreq_driver_target(¤t_policy[cpu],
cpu_set_freq[cpu],
+ __cpufreq_driver_target(policy, cpu_set_freq[cpu],
CPUFREQ_RELATION_L);
}
Thx,
Venki
>-----Original Message-----
>From: Thomas Renninger [mailto:trenn@xxxxxxx]
>Sent: Tuesday, January 24, 2006 8:18 AM
>To: cpufreq@xxxxxxxxxxxxxxxx
>Cc: Pallipadi, Venkatesh; Dominik Brodowski; Kernel Mailing List
>Subject: [PATCH 2/2] _PPC frequency change issues
>
>and the second one fixing the usergovernor for these machines...
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/