diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-26 13:00:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-26 13:00:04 -0400 |
commit | 4f6876031ee105466f400661a0dd3fa66c4f0c09 (patch) | |
tree | 9dd7ecb194ea3f50bdc0e6e4545faff3e9898a2c /arch | |
parent | 4390110fef9e5c64e10c6ca19d586932242c9a8a (diff) | |
parent | a69a0612c4cb7b08570d1b25b542cef478a2d79a (diff) |
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq
* 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq:
[CPUFREQ]: x86, cpufreq: Mark longrun_get_policy with __cpuinit.
[CPUFREQ] add sampling_down_factor tunable to improve ondemand performance
[CPUFREQ] arch/x86/kernel/cpu/cpufreq: Fix unsigned return type
[CPUFREQ] drivers/cpufreq: Adjust confusing if indentation
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/cpu/cpufreq/cpufreq-nforce2.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/cpufreq/longrun.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/cpufreq/cpufreq-nforce2.c b/arch/x86/kernel/cpu/cpufreq/cpufreq-nforce2.c index 733093d60436..141abebc4516 100644 --- a/arch/x86/kernel/cpu/cpufreq/cpufreq-nforce2.c +++ b/arch/x86/kernel/cpu/cpufreq/cpufreq-nforce2.c | |||
@@ -393,7 +393,7 @@ static struct cpufreq_driver nforce2_driver = { | |||
393 | * Detects nForce2 A2 and C1 stepping | 393 | * Detects nForce2 A2 and C1 stepping |
394 | * | 394 | * |
395 | */ | 395 | */ |
396 | static unsigned int nforce2_detect_chipset(void) | 396 | static int nforce2_detect_chipset(void) |
397 | { | 397 | { |
398 | nforce2_dev = pci_get_subsys(PCI_VENDOR_ID_NVIDIA, | 398 | nforce2_dev = pci_get_subsys(PCI_VENDOR_ID_NVIDIA, |
399 | PCI_DEVICE_ID_NVIDIA_NFORCE2, | 399 | PCI_DEVICE_ID_NVIDIA_NFORCE2, |
diff --git a/arch/x86/kernel/cpu/cpufreq/longrun.c b/arch/x86/kernel/cpu/cpufreq/longrun.c index fc09f142d94d..d9f51367666b 100644 --- a/arch/x86/kernel/cpu/cpufreq/longrun.c +++ b/arch/x86/kernel/cpu/cpufreq/longrun.c | |||
@@ -35,7 +35,7 @@ static unsigned int longrun_low_freq, longrun_high_freq; | |||
35 | * Reads the current LongRun policy by access to MSR_TMTA_LONGRUN_FLAGS | 35 | * Reads the current LongRun policy by access to MSR_TMTA_LONGRUN_FLAGS |
36 | * and MSR_TMTA_LONGRUN_CTRL | 36 | * and MSR_TMTA_LONGRUN_CTRL |
37 | */ | 37 | */ |
38 | static void __init longrun_get_policy(struct cpufreq_policy *policy) | 38 | static void __cpuinit longrun_get_policy(struct cpufreq_policy *policy) |
39 | { | 39 | { |
40 | u32 msr_lo, msr_hi; | 40 | u32 msr_lo, msr_hi; |
41 | 41 | ||
@@ -165,7 +165,7 @@ static unsigned int longrun_get(unsigned int cpu) | |||
165 | * TMTA rules: | 165 | * TMTA rules: |
166 | * performance_pctg = (target_freq - low_freq)/(high_freq - low_freq) | 166 | * performance_pctg = (target_freq - low_freq)/(high_freq - low_freq) |
167 | */ | 167 | */ |
168 | static unsigned int __cpuinit longrun_determine_freqs(unsigned int *low_freq, | 168 | static int __cpuinit longrun_determine_freqs(unsigned int *low_freq, |
169 | unsigned int *high_freq) | 169 | unsigned int *high_freq) |
170 | { | 170 | { |
171 | u32 msr_lo, msr_hi; | 171 | u32 msr_lo, msr_hi; |