summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/cpu/cpufreq/speedstep-ich.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-11-17 14:39:53 -0800
committerDave Jones <davej@redhat.com>2009-11-24 13:33:34 -0500
commit1cce76c2ac60df40b02bf747982fb3f00e68f50a (patch)
tree1b59d82a0b71f9d9607c66d4294994baecd47dfd /arch/x86/kernel/cpu/cpufreq/speedstep-ich.c
parentbbe237aafeaae37a1088f2a95ebe81ff81d9e646 (diff)
downloadlwn-1cce76c2ac60df40b02bf747982fb3f00e68f50a.tar.gz
lwn-1cce76c2ac60df40b02bf747982fb3f00e68f50a.zip
[CPUFREQ] use an enum for speedstep processor identification
The "unsigned int processor" everywhere confused Rusty, leading to breakage when he passed in smp_processor_id(). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Acked-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/x86/kernel/cpu/cpufreq/speedstep-ich.c')
-rw-r--r--arch/x86/kernel/cpu/cpufreq/speedstep-ich.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/cpufreq/speedstep-ich.c b/arch/x86/kernel/cpu/cpufreq/speedstep-ich.c
index 3ae5a7a3a500..2ce8e0b5cc54 100644
--- a/arch/x86/kernel/cpu/cpufreq/speedstep-ich.c
+++ b/arch/x86/kernel/cpu/cpufreq/speedstep-ich.c
@@ -39,7 +39,7 @@ static struct pci_dev *speedstep_chipset_dev;
/* speedstep_processor
*/
-static unsigned int speedstep_processor;
+static enum speedstep_processor speedstep_processor;
static u32 pmbase;