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

[CPUFREQ] Whitespace/CodingStyle fixes for speedstep-ich

Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 6c7b6c0c
......@@ -82,8 +82,7 @@ static void speedstep_set_state (unsigned int state)
/* get PMBASE */
pci_read_config_dword(speedstep_chipset_dev, 0x40, &pmbase);
if (!(pmbase & 0x01))
{
if (!(pmbase & 0x01)) {
printk(KERN_ERR "cpufreq: could not find speedstep register\n");
return;
}
......@@ -151,13 +150,11 @@ static int speedstep_activate (void)
if (!speedstep_chipset_dev)
return -EINVAL;
pci_read_config_word(speedstep_chipset_dev,
0x00A0, &value);
pci_read_config_word(speedstep_chipset_dev, 0x00A0, &value);
if (!(value & 0x08)) {
value |= 0x08;
dprintk(KERN_DEBUG "cpufreq: activating SpeedStep (TM) registers\n");
pci_write_config_word(speedstep_chipset_dev,
0x00A0, value);
pci_write_config_word(speedstep_chipset_dev, 0x00A0, value);
}
return 0;
......@@ -342,9 +339,8 @@ static int speedstep_cpu_init(struct cpufreq_policy *policy)
&speedstep_freqs[SPEEDSTEP_HIGH].frequency,
&speedstep_set_state);
set_cpus_allowed(current, cpus_allowed);
if (result) {
if (result)
return result;
}
/* get current speed setting */
speed = speedstep_get(policy->cpu);
......
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