Commit b1ff2254 authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[CPUFREQ] fix up random CodingStyle /whitespace regressions.

Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 1354760c
...@@ -131,14 +131,14 @@ static void do_powersaver(union msr_longhaul *longhaul, ...@@ -131,14 +131,14 @@ static void do_powersaver(union msr_longhaul *longhaul,
int version; int version;
switch (cpu_model) { switch (cpu_model) {
case CPU_EZRA_T: case CPU_EZRA_T:
version = 3; version = 3;
break; break;
case CPU_NEHEMIAH: case CPU_NEHEMIAH:
version = 0xf; version = 0xf;
break; break;
default: default:
return; return;
} }
rdmsrl(MSR_VIA_LONGHAUL, longhaul->val); rdmsrl(MSR_VIA_LONGHAUL, longhaul->val);
...@@ -188,7 +188,7 @@ static void longhaul_setstate(unsigned int clock_ratio_index) ...@@ -188,7 +188,7 @@ static void longhaul_setstate(unsigned int clock_ratio_index)
cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE); cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE);
dprintk (KERN_INFO PFX "Setting to FSB:%dMHz Mult:%d.%dx (%s)\n", dprintk (KERN_INFO PFX "Setting to FSB:%dMHz Mult:%d.%dx (%s)\n",
fsb, mult/10, mult%10, print_speed(speed/1000)); fsb, mult/10, mult%10, print_speed(speed/1000));
switch (longhaul_version) { switch (longhaul_version) {
...@@ -462,8 +462,7 @@ static int longhaul_verify(struct cpufreq_policy *policy) ...@@ -462,8 +462,7 @@ static int longhaul_verify(struct cpufreq_policy *policy)
static int longhaul_target(struct cpufreq_policy *policy, static int longhaul_target(struct cpufreq_policy *policy,
unsigned int target_freq, unsigned int target_freq, unsigned int relation)
unsigned int relation)
{ {
unsigned int table_index = 0; unsigned int table_index = 0;
unsigned int new_clock_ratio = 0; unsigned int new_clock_ratio = 0;
...@@ -478,6 +477,7 @@ static int longhaul_target(struct cpufreq_policy *policy, ...@@ -478,6 +477,7 @@ static int longhaul_target(struct cpufreq_policy *policy,
return 0; return 0;
} }
static unsigned int longhaul_get(unsigned int cpu) static unsigned int longhaul_get(unsigned int cpu)
{ {
if (cpu) if (cpu)
...@@ -564,13 +564,13 @@ static int __init longhaul_cpu_init(struct cpufreq_policy *policy) ...@@ -564,13 +564,13 @@ static int __init longhaul_cpu_init(struct cpufreq_policy *policy)
printk (KERN_INFO PFX "VIA %s CPU detected.", cpuname); printk (KERN_INFO PFX "VIA %s CPU detected.", cpuname);
switch (longhaul_version) { switch (longhaul_version) {
case TYPE_LONGHAUL_V1: case TYPE_LONGHAUL_V1:
case TYPE_LONGHAUL_V2: case TYPE_LONGHAUL_V2:
printk ("Longhaul v%d supported.\n", longhaul_version); printk ("Longhaul v%d supported.\n", longhaul_version);
break; break;
case TYPE_POWERSAVER: case TYPE_POWERSAVER:
printk ("Powersaver supported.\n"); printk ("Powersaver supported.\n");
break; break;
}; };
ret = longhaul_get_ranges(); ret = longhaul_get_ranges();
...@@ -616,6 +616,7 @@ static struct cpufreq_driver longhaul_driver = { ...@@ -616,6 +616,7 @@ static struct cpufreq_driver longhaul_driver = {
.attr = longhaul_attr, .attr = longhaul_attr,
}; };
static int __init longhaul_init(void) static int __init longhaul_init(void)
{ {
struct cpuinfo_x86 *c = cpu_data; struct cpuinfo_x86 *c = cpu_data;
...@@ -633,6 +634,7 @@ static int __init longhaul_init(void) ...@@ -633,6 +634,7 @@ static int __init longhaul_init(void)
return -ENODEV; return -ENODEV;
} }
static void __exit longhaul_exit(void) static void __exit longhaul_exit(void)
{ {
int i=0; int i=0;
......
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