projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b8106a
)
x86: clean up cpu capabilities accesses, p4-clockmod.c
author
Ingo Molnar
<mingo@elte.hu>
Tue, 26 Feb 2008 07:52:16 +0000
(08:52 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Sat, 19 Apr 2008 17:19:54 +0000
(19:19 +0200)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/cpufreq/p4-clockmod.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/cpufreq/p4-clockmod.c
b/arch/x86/kernel/cpu/cpufreq/p4-clockmod.c
index
14791ec
..
199e4e0
100644
(file)
--- a/
arch/x86/kernel/cpu/cpufreq/p4-clockmod.c
+++ b/
arch/x86/kernel/cpu/cpufreq/p4-clockmod.c
@@
-289,8
+289,8
@@
static int __init cpufreq_p4_init(void)
if (c->x86_vendor != X86_VENDOR_INTEL)
return -ENODEV;
- if (!test_
bit(X86_FEATURE_ACPI, c->x86_capability
) ||
-
!test_bit(X86_FEATURE_ACC, c->x86_capability
))
+ if (!test_
cpu_cap(c, X86_FEATURE_ACPI
) ||
+
!test_cpu_cap(c, X86_FEATURE_ACC
))
return -ENODEV;
ret = cpufreq_register_driver(&p4clockmod_driver);