Commit a69aa156 authored by Dave Jones's avatar Dave Jones

[CPUFREQ] Fix use of fsb before initialisation in longhaul.

parent 440f48e7
...@@ -254,7 +254,7 @@ static int longhaul_version; ...@@ -254,7 +254,7 @@ static int longhaul_version;
static struct cpufreq_frequency_table *longhaul_table; static struct cpufreq_frequency_table *longhaul_table;
static int longhaul_get_cpu_fsb (void) static unsigned int longhaul_get_cpu_fsb (void)
{ {
unsigned long lo, hi; unsigned long lo, hi;
unsigned int eblcr_fsb_table[] = { 66, 133, 100, -1 }; unsigned int eblcr_fsb_table[] = { 66, 133, 100, -1 };
...@@ -403,6 +403,8 @@ static int __init longhaul_get_ranges (void) ...@@ -403,6 +403,8 @@ static int __init longhaul_get_ranges (void)
unsigned int j, k = 0; unsigned int j, k = 0;
union msr_longhaul longhaul; union msr_longhaul longhaul;
fsb = longhaul_get_cpu_fsb();
switch (longhaul_version) { switch (longhaul_version) {
case 1: case 1:
/* Ugh, Longhaul v1 didn't have the min/max MSRs. /* Ugh, Longhaul v1 didn't have the min/max MSRs.
......
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