]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
sh: Make cpufreq driver less noisy on SMP.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 21 Sep 2007 08:53:26 +0000 (17:53 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 21 Sep 2007 08:53:26 +0000 (17:53 +0900)
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>
arch/sh/kernel/cpufreq.c

index e61890217c5012b006fa8437975d4fe55a0fe108..c7668971ba6c6a2a4f6446c620eec6334e8eab7a 100644 (file)
@@ -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;
 
@@ -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);
 }