Commit fa759772 authored by Dave Jones's avatar Dave Jones

[CPUFREQ] powernow-k8 Namespace cleanups.

More bits from Pavel. drv_* in oopses is pretty uninformative.
parent b5111f62
...@@ -72,9 +72,9 @@ static u32 batps; /* limit on the number of p states when on battery */ ...@@ -72,9 +72,9 @@ static u32 batps; /* limit on the number of p states when on battery */
/* - set by BIOS in the PSB/PST */ /* - set by BIOS in the PSB/PST */
static struct cpufreq_driver cpufreq_amd64_driver = { static struct cpufreq_driver cpufreq_amd64_driver = {
.verify = drv_verify, .verify = powernowk8_verify,
.target = drv_target, .target = powernowk8_target,
.init = drv_cpu_init, .init = powernowk8_cpu_init,
.name = "cpufreq-amd64", .name = "cpufreq-amd64",
.owner = THIS_MODULE, .owner = THIS_MODULE,
}; };
...@@ -90,7 +90,7 @@ find_freq_from_fid(u32 fid) ...@@ -90,7 +90,7 @@ find_freq_from_fid(u32 fid)
} }
/* Return a fid matching an input frequency in MHz */ /* Return a fid matching an input frequency in MHz */
u32 static u32
find_fid_from_freq(u32 freq) find_fid_from_freq(u32 freq)
{ {
return (freq - 800) / 100; return (freq - 800) / 100;
...@@ -861,7 +861,7 @@ transition_frequency(u32 * preq, u32 * pmin, u32 * pmax, u32 searchup) ...@@ -861,7 +861,7 @@ transition_frequency(u32 * preq, u32 * pmin, u32 * pmax, u32 searchup)
/* Driver entry point to switch to the target frequency */ /* Driver entry point to switch to the target frequency */
static int static int
drv_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;
...@@ -909,7 +909,7 @@ drv_target(struct cpufreq_policy *pol, unsigned targfreq, unsigned relation) ...@@ -909,7 +909,7 @@ drv_target(struct cpufreq_policy *pol, unsigned targfreq, unsigned relation)
/* Driver entry point to verify the policy and range of frequencies */ /* Driver entry point to verify the policy and range of frequencies */
static int static int
drv_verify(struct cpufreq_policy *pol) powernowk8_verify(struct cpufreq_policy *pol)
{ {
u32 min = pol->min / 1000; u32 min = pol->min / 1000;
u32 max = pol->max / 1000; u32 max = pol->max / 1000;
...@@ -948,7 +948,7 @@ drv_verify(struct cpufreq_policy *pol) ...@@ -948,7 +948,7 @@ drv_verify(struct cpufreq_policy *pol)
/* per CPU init entry point to the driver */ /* per CPU init entry point to the driver */
static int __init static int __init
drv_cpu_init(struct cpufreq_policy *pol) powernowk8_cpu_init(struct cpufreq_policy *pol)
{ {
if (pol->cpu != 0) { if (pol->cpu != 0) {
printk(KERN_ERR PFX "init not cpu 0\n"); printk(KERN_ERR PFX "init not cpu 0\n");
...@@ -981,7 +981,7 @@ drv_cpu_init(struct cpufreq_policy *pol) ...@@ -981,7 +981,7 @@ drv_cpu_init(struct cpufreq_policy *pol)
/* driver entry point for init */ /* driver entry point for init */
static int __init static int __init
drv_init(void) powernowk8_init(void)
{ {
int rc; int rc;
...@@ -995,7 +995,7 @@ drv_init(void) ...@@ -995,7 +995,7 @@ drv_init(void)
return rc; return rc;
if (pending_bit_stuck()) { if (pending_bit_stuck()) {
printk(KERN_ERR PFX "drv_init fail, change pending bit set\n"); printk(KERN_ERR PFX "powernowk8_init fail, change pending bit set\n");
kfree(ppst); kfree(ppst);
return -EIO; return -EIO;
} }
...@@ -1005,9 +1005,9 @@ drv_init(void) ...@@ -1005,9 +1005,9 @@ drv_init(void)
/* driver entry point for term */ /* driver entry point for term */
static void __exit static void __exit
drv_exit(void) powernowk8_exit(void)
{ {
dprintk(KERN_INFO PFX "drv_exit\n"); dprintk(KERN_INFO PFX "powernowk8_exit\n");
cpufreq_unregister_driver(&cpufreq_amd64_driver); cpufreq_unregister_driver(&cpufreq_amd64_driver);
kfree(ppst); kfree(ppst);
...@@ -1017,5 +1017,5 @@ MODULE_AUTHOR("Paul Devriendt <paul.devriendt@amd.com>"); ...@@ -1017,5 +1017,5 @@ MODULE_AUTHOR("Paul Devriendt <paul.devriendt@amd.com>");
MODULE_DESCRIPTION("AMD Athlon 64 and Opteron processor frequency driver."); MODULE_DESCRIPTION("AMD Athlon 64 and Opteron processor frequency driver.");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
module_init(drv_init); module_init(powernowk8_init);
module_exit(drv_exit); module_exit(powernowk8_exit);
...@@ -120,7 +120,7 @@ struct pst_s { ...@@ -120,7 +120,7 @@ struct pst_s {
static inline int core_voltage_pre_transition(u32 reqvid); static inline int core_voltage_pre_transition(u32 reqvid);
static inline int core_voltage_post_transition(u32 reqvid); static inline int core_voltage_post_transition(u32 reqvid);
static inline int core_frequency_transition(u32 reqfid); static inline int core_frequency_transition(u32 reqfid);
static int drv_verify(struct cpufreq_policy *pol); static int powernowk8_verify(struct cpufreq_policy *pol);
static int drv_target(struct cpufreq_policy *pol, unsigned targfreq, static int powernowk8_target(struct cpufreq_policy *pol, unsigned targfreq,
unsigned relation); unsigned relation);
static int __init drv_cpu_init(struct cpufreq_policy *pol); static int __init powernowk8_cpu_init(struct cpufreq_policy *pol);
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