[CPUFREQ] Fix section mismatch for longrun_cpu_init.
authorHolger Freyther <zecke@selfish.org>
Sun, 18 Jul 2010 19:28:49 +0000 (03:28 +0800)
committerDave Jones <davej@redhat.com>
Tue, 3 Aug 2010 17:47:06 +0000 (13:47 -0400)
Use __cpuinit instead of __init for the cpufreq_driver
init function like it is done in powernow-k8.c.

This is removing the warning generated when compiling with
the CONFIG_DEBUG_SECTION_MISMATCH=y option.

Signed-off-by: Holger Hans Peter Freyther <holger@moiji-mobile.com>
Signed-off-by: Dave Jones <davej@redhat.com>
arch/x86/kernel/cpu/cpufreq/longrun.c

index e7b559d74c5242c0ea0c490e21c6e298ff9dd557..fc09f142d94d964539e11e55101e5edaaf60eaac 100644 (file)
@@ -165,8 +165,8 @@ static unsigned int longrun_get(unsigned int cpu)
  * TMTA rules:
  * performance_pctg = (target_freq - low_freq)/(high_freq - low_freq)
  */
-static unsigned int __init longrun_determine_freqs(unsigned int *low_freq,
-                                                  unsigned int *high_freq)
+static unsigned int __cpuinit longrun_determine_freqs(unsigned int *low_freq,
+                                                     unsigned int *high_freq)
 {
        u32 msr_lo, msr_hi;
        u32 save_lo, save_hi;
@@ -258,7 +258,7 @@ static unsigned int __init longrun_determine_freqs(unsigned int *low_freq,
 }
 
 
-static int __init longrun_cpu_init(struct cpufreq_policy *policy)
+static int __cpuinit longrun_cpu_init(struct cpufreq_policy *policy)
 {
        int result = 0;