2 Apr 2012 22:41
[PATCH] Longhaul: Check for CPU model first
Rafal Bilski <rafalbilski <at> interia.pl>
2012-04-02 20:41:47 GMT
2012-04-02 20:41:47 GMT
This patch fixes bug 16274. This is C3 only driver, but APIC and
SMP checks are executed on any Centaur processor. Check for CPU
model first and stop produce bogus error messages on C7 and Nano
systems.
Signed-off-by: Rafal Bilski <rafalbilski <at> interia.pl>
---
Please close bug 16274 if this patch is accepted.
drivers/cpufreq/longhaul.c | 25 +++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/drivers/cpufreq/longhaul.c b/drivers/cpufreq/longhaul.c
index f47d26e..f70287e 100644
--- a/drivers/cpufreq/longhaul.c
+++ b/drivers/cpufreq/longhaul.c
<at> <at> -959,22 +959,23 <at> <at> static int __init longhaul_init(void)
if (c->x86_vendor != X86_VENDOR_CENTAUR || c->x86 != 6)
return -ENODEV;
+ switch (c->x86_model) {
+ case 6 ... 9:
#ifdef CONFIG_SMP
- if (num_online_cpus() > 1) {
- printk(KERN_ERR PFX "More than 1 CPU detected, "
- "longhaul disabled.\n");
- return -ENODEV;
- }
+ if (num_online_cpus() > 1) {
(Continue reading)
RSS Feed