Skip to content

Commit

Permalink
powerpc: Silence __cpu_up() under normal operation
Browse files Browse the repository at this point in the history
During CPU offline/online tests __cpu_up would flood the logs with
the following message:

Processor 0 found.

This provides no useful information to the user as there is no context
provided, and since the operation was a success (to this point) it is expected
that the CPU will come back online, providing all the feedback necessary.

Change the "Processor found" message to DBG() similar to other such messages in
the same function. Also, add an appropriate log level for the "Processor is
stuck" message.

Signed-off-by: Darren Hart <dvhltc@us.ibm.com>
Acked-by: Will Schmidt <will_schmidt@vnet.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Nathan Fontenot <nfont@austin.ibm.com>
Cc: Robert Jennings <rcj@linux.vnet.ibm.com>
Cc: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Signed-off-by: Darren Hart authored and Benjamin Herrenschmidt committed Aug 24, 2010
1 parent a7c2bb8 commit 6685a47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,11 +427,11 @@ int __cpuinit __cpu_up(unsigned int cpu)
#endif

if (!cpu_callin_map[cpu]) {
printk("Processor %u is stuck.\n", cpu);
printk(KERN_ERR "Processor %u is stuck.\n", cpu);
return -ENOENT;
}

printk("Processor %u found.\n", cpu);
DBG("Processor %u found.\n", cpu);

if (smp_ops->give_timebase)
smp_ops->give_timebase();
Expand Down

0 comments on commit 6685a47

Please sign in to comment.