cpufreq: deprecated usage of CPUFREQ_ALL_CPUS
PATCH 1/1 cpufreq: deprecated usage of CPUFREQ_ALL_CPUS
The usage of CPUFREQ_ALL_CPUS is deprecated. Only exception is cpufreq_set, which needs to iterate over all CPUS now. Also, remove some unneeded code.
arch/i386/kernel/cpu/cpufreq/elanfreq.c +1 -1
@@ -124,7 +124,7 @@ freqs.old =elanfreq_get_cpu_frequency (); freqs.new = elan_multiplier[state].clock; - freqs.cpu =CPUFREQ_ALL_CPUS ;/* elanfreq.c is UP only driver */ + freqs.cpu =0 ;/* elanfreq.c is UP only driver */ cpufreq_notify_transition (&freqs,CPUFREQ_PRECHANGE );
arch/i386/kernel/cpu/cpufreq/longhaul.c +1 -1
@@ -315,7 +315,7 @@ freqs.old =longhaul_get_cpu_mult () *longhaul_get_cpu_fsb () *100 ; freqs.new = clock_ratio[clock_ratio_index] * newfsb *100 ; - freqs.cpu =CPUFREQ_ALL_CPUS ;/* longhaul.c is UP only driver */ + freqs.cpu =0 ;/* longhaul.c is UP only driver */ cpufreq_notify_transition (&freqs,CPUFREQ_PRECHANGE );
arch/i386/kernel/cpu/cpufreq/powernow-k6.c +1 -1
@@ -83,7 +83,7 @@ freqs.old = busfreq *powernow_k6_get_cpu_multiplier (); freqs.new = busfreq * clock_ratio[best_i]; - freqs.cpu =CPUFREQ_ALL_CPUS ;/* powernow-k6.c is UP only driver */ + freqs.cpu =0 ;/* powernow-k6.c is UP only driver */ cpufreq_notify_transition (&freqs,CPUFREQ_PRECHANGE );
arch/i386/kernel/cpu/cpufreq/speedstep.c +1 -1
@@ -154,7 +154,7 @@ freqs.old = (oldstate ==SPEEDSTEP_HIGH ) ? speedstep_high_freq : speedstep_low_freq; freqs.new = (state ==SPEEDSTEP_HIGH ) ? speedstep_high_freq : speedstep_low_freq; - freqs.cpu =CPUFREQ_ALL_CPUS ;/* speedstep.c is UP only driver */ + freqs.cpu =0 ;/* speedstep.c is UP only driver */ if (notify)cpufreq_notify_transition (&freqs,CPUFREQ_PRECHANGE );
kernel/cpufreq.c +20 -34
92 lines not on this page · raw message
include/linux/cpufreq.h +0 -11
@@ -104,14 +104,6 @@/********************************************************************* -* DYNAMIC CPUFREQ INTERFACE * -*********************************************************************/ -#ifdef CONFIG_CPU_FREQ_DYNAMIC -/* TBD */ -#endif /* CONFIG_CPU_FREQ_DYNAMIC */ - - -/********************************************************************* * CPUFREQ DRIVER INTERFACE * *********************************************************************/
@@ -122,9 +114,6 @@cpufreq_policy_t verify;cpufreq_policy_t setpolicy;struct cpufreq_policy *policy; -#ifdef CONFIG_CPU_FREQ_DYNAMIC -/* TBD */ -#endif /* 2.4. compatible API */ #ifdef CONFIG_CPU_FREQ_24_API unsigned int cpu_cur_freq[NR_CPUS ];