Commit 2eb930bb authored by Dave Jones's avatar Dave Jones

[CPUFREQ] refix EBLCR FSB only works on Samuel1.

Now that longhaul=1 matches more than 1 CPU, this broke.
parent d77bfa76
......@@ -194,6 +194,7 @@ static int guess_fsb(int maxmult)
static int __init longhaul_get_ranges (void)
{
struct cpuinfo_x86 *c = cpu_data;
unsigned long invalue;
unsigned int minmult=0, maxmult=0;
unsigned int multipliers[32]= {
......@@ -212,7 +213,10 @@ static int __init longhaul_get_ranges (void)
maxmult = longhaul_get_cpu_mult();
rdmsr (MSR_IA32_EBL_CR_POWERON, lo, hi);
invalue = (lo & (1<<18|1<<19)) >>18;
fsb = eblcr_fsb_table[invalue];
if (c->x86_model==6)
fsb = eblcr_fsb_table[invalue];
else
fsb = guess_fsb(maxmult);
break;
case 2:
......
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