Commit e2495f06 authored by Dave Jones's avatar Dave Jones

[CPUFREQ] Inform user of status of Ezra-T/Nehemiah longhaul support.

These are currently unsupported, and I get quite a lot of mails
asking about it. Hopefully this will be a little more informative
than 'unknown CPU'.
parent 76374783
...@@ -577,7 +577,6 @@ static int longhaul_cpu_init (struct cpufreq_policy *policy) ...@@ -577,7 +577,6 @@ static int longhaul_cpu_init (struct cpufreq_policy *policy)
break; break;
case 8: /* C5M/C5N */ case 8: /* C5M/C5N */
return -ENODEV; // Waiting on updated docs from VIA before this is usable
longhaul_version=3; longhaul_version=3;
numscales=32; numscales=32;
memcpy (clock_ratio, longhaul3_clock_ratio, sizeof(longhaul3_clock_ratio)); memcpy (clock_ratio, longhaul3_clock_ratio, sizeof(longhaul3_clock_ratio));
...@@ -614,14 +613,20 @@ static int __init longhaul_init (void) ...@@ -614,14 +613,20 @@ static int __init longhaul_init (void)
{ {
struct cpuinfo_x86 *c = cpu_data; struct cpuinfo_x86 *c = cpu_data;
if ((c->x86_vendor != X86_VENDOR_CENTAUR) || (c->x86 !=6) ) if (c->x86_vendor != X86_VENDOR_CENTAUR || c->x86 != 6)
return -ENODEV; return -ENODEV;
switch (c->x86_model) { switch (c->x86_model) {
case 6 ... 7: case 6 ... 7:
return cpufreq_register_driver(&longhaul_driver); return cpufreq_register_driver(&longhaul_driver);
case 8: case 8:
return -ENODEV; printk (KERN_INFO PFX "Ezra-T unsupported: Waiting on updated docs "
"from VIA before this is usable.\n");
break;
case 9:
printk (KERN_INFO PFX "Nehemiah unsupported: Waiting on working silicon "
"from VIA before this is usable.\n");
break;
default: default:
printk (KERN_INFO PFX "Unknown VIA CPU. Contact davej@codemonkey.org.uk\n"); printk (KERN_INFO PFX "Unknown VIA CPU. Contact davej@codemonkey.org.uk\n");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment