]> Git Repo - linux.git/commitdiff
[CPUFREQ]: x86, cpufreq: Mark longrun_get_policy with __cpuinit.
authorRakib Mullick <[email protected]>
Thu, 21 Oct 2010 11:28:44 +0000 (17:28 +0600)
committerDave Jones <[email protected]>
Fri, 22 Oct 2010 15:44:47 +0000 (11:44 -0400)
This patch fixes the following warning. The function
longrun_cpu_init() is marked with __cpuinit which calls
longrun_get_policy() which is a __init function. So make
longrun_get_policy with __cpuinit.

WARNING: arch/x86/kernel/cpu/cpufreq/longrun.o(.cpuinit.text+0x4c5):
Section mismatch in reference from the function longrun_cpu_init() to
the function .init.text:longrun_get_policy()
The function __cpuinit longrun_cpu_init() references
a function __init longrun_get_policy().
If longrun_get_policy is only used by longrun_cpu_init then
annotate longrun_get_policy with a matching annotation.

Signed-off-by: Rakib Mullick <[email protected]>
Signed-off-by: Dave Jones <[email protected]>
arch/x86/kernel/cpu/cpufreq/longrun.c

index 77945bfbded2d118d6c825df81cf1183a1fa85d9..d9f51367666b0c3096829b69fb1db04fb0f34d63 100644 (file)
@@ -35,7 +35,7 @@ static unsigned int longrun_low_freq, longrun_high_freq;
  * Reads the current LongRun policy by access to MSR_TMTA_LONGRUN_FLAGS
  * and MSR_TMTA_LONGRUN_CTRL
  */
-static void __init longrun_get_policy(struct cpufreq_policy *policy)
+static void __cpuinit longrun_get_policy(struct cpufreq_policy *policy)
 {
        u32 msr_lo, msr_hi;
 
This page took 0.051408 seconds and 4 git commands to generate.