Skip to content

Commit

Permalink
sh: Make cpufreq driver less noisy on SMP.
Browse files Browse the repository at this point in the history
The cpufreq driver banner is currently printed for each CPU, move
it down so it's not as noisy and it's only printed once.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Sep 21, 2007
1 parent c1a069f commit 00765c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/sh/kernel/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ static int sh_cpufreq_target(struct cpufreq_policy *policy,

static int sh_cpufreq_cpu_init(struct cpufreq_policy *policy)
{
printk(KERN_INFO "cpufreq: SuperH CPU frequency driver.\n");

if (!cpu_online(policy->cpu))
return -ENODEV;

Expand Down Expand Up @@ -144,6 +142,7 @@ static struct cpufreq_driver sh_cpufreq_driver = {

static int __init sh_cpufreq_module_init(void)
{
printk(KERN_INFO "cpufreq: SuperH CPU frequency driver.\n");
return cpufreq_register_driver(&sh_cpufreq_driver);
}

Expand Down

0 comments on commit 00765c8

Please sign in to comment.