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

[CPUFREQ] powernow-k8 whitespace changes.

Trying to get the diffsize down between me & Pavel.
parent 9ed7ef7d
...@@ -79,8 +79,7 @@ static u32 find_freq_from_fid(u32 fid) ...@@ -79,8 +79,7 @@ static u32 find_freq_from_fid(u32 fid)
/* Return the vco fid for an input fid */ /* Return the vco fid for an input fid */
static u32 static u32 convert_fid_to_vco_fid(u32 fid)
convert_fid_to_vco_fid(u32 fid)
{ {
if (fid < HI_FID_TABLE_BOTTOM) { if (fid < HI_FID_TABLE_BOTTOM) {
return 8 + (2 * fid); return 8 + (2 * fid);
...@@ -90,11 +89,10 @@ convert_fid_to_vco_fid(u32 fid) ...@@ -90,11 +89,10 @@ convert_fid_to_vco_fid(u32 fid)
} }
/* /*
* Return 1 if the pending bit is set. Unless we are actually just told the * Return 1 if the pending bit is set. Unless we just instructed the processor
* processor to transition a state, seeing this bit set is really bad news. * to transition to a new state, seeing this bit set is really bad news.
*/ */
static inline int static inline int pending_bit_stuck(void)
pending_bit_stuck(void)
{ {
u32 lo, hi; u32 lo, hi;
...@@ -103,8 +101,8 @@ pending_bit_stuck(void) ...@@ -103,8 +101,8 @@ pending_bit_stuck(void)
} }
/* /*
* Update the global current fid / vid values from the status msr. Returns 1 * Update the global current fid / vid values from the status msr.
* on error. * Returns 1 on error.
*/ */
static int static int
query_current_values_with_pending_wait(void) query_current_values_with_pending_wait(void)
...@@ -728,8 +726,7 @@ transition_frequency(unsigned int index) ...@@ -728,8 +726,7 @@ transition_frequency(unsigned int index)
} }
/* Driver entry point to switch to the target frequency */ /* Driver entry point to switch to the target frequency */
static int static int powernowk8_target(struct cpufreq_policy *pol, unsigned targfreq, unsigned relation)
powernowk8_target(struct cpufreq_policy *pol, unsigned targfreq, unsigned relation)
{ {
u32 checkfid = currfid; u32 checkfid = currfid;
u32 checkvid = currvid; u32 checkvid = currvid;
...@@ -846,10 +843,8 @@ static struct cpufreq_driver cpufreq_amd64_driver = { ...@@ -846,10 +843,8 @@ static struct cpufreq_driver cpufreq_amd64_driver = {
.attr = powernow_k8_attr, .attr = powernow_k8_attr,
}; };
/* driver entry point for init */ /* driver entry point for init */
static int __init static int __init powernowk8_init(void)
powernowk8_init(void)
{ {
int rc; int rc;
...@@ -869,10 +864,9 @@ powernowk8_init(void) ...@@ -869,10 +864,9 @@ powernowk8_init(void)
} }
/* driver entry point for term */ /* driver entry point for term */
static void __exit static void __exit powernowk8_exit(void)
powernowk8_exit(void)
{ {
dprintk(KERN_INFO PFX "powernowk8_exit\n"); dprintk(KERN_INFO PFX "exit\n");
cpufreq_unregister_driver(&cpufreq_amd64_driver); cpufreq_unregister_driver(&cpufreq_amd64_driver);
} }
......
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