powerpc/pseries/smp: query-cpu-stopped-state support won't change
authorMilton Miller <miltonm@bga.com>
Mon, 21 Mar 2011 08:12:13 +0000 (08:12 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 29 Mar 2011 23:44:16 +0000 (10:44 +1100)
If a given firmware doesn't have a token to support query-cpu-stopped-state,
its not likely to change during the lifetime of the kernel.

Only print this information once, not once per secondary thread.

While here, make the line wrap grep friendly.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/smp.c

index 0317cce877c647c28e66525dffa24ff1987deedf..d6479f9738f07011da9aa9e3fddbe1a864bfcad8 100644 (file)
@@ -64,8 +64,8 @@ int smp_query_cpu_stopped(unsigned int pcpu)
        int qcss_tok = rtas_token("query-cpu-stopped-state");
 
        if (qcss_tok == RTAS_UNKNOWN_SERVICE) {
-               printk(KERN_INFO "Firmware doesn't support "
-                               "query-cpu-stopped-state\n");
+               printk_once(KERN_INFO
+                       "Firmware doesn't support query-cpu-stopped-state\n");
                return QCSS_HARDWARE_ERROR;
        }