1
0
mirror of https://github.com/torvalds/linux.git synced 2024-12-26 04:42:12 +00:00
linux/arch/x86/include/asm/misc.h
Borislav Petkov 646e29a178 x86: Improve the printout of the SMP bootup CPU table
As the new x86 CPU bootup printout format code maintainer, I am
taking immediate action to improve and clean (and thus indulge
my OCD) the reporting of the cores when coming up online.

Fix padding to a right-hand alignment, cleanup code and bind
reporting width to the max number of supported CPUs on the
system, like this:

 [    0.074509] smpboot: Booting Node   0, Processors:                   OK
 [    0.644008] smpboot: Booting Node   1, Processors:           OK
 [    1.245006] smpboot: Booting Node   2, Processors:         OK
 [    1.864005] smpboot: Booting Node   3, Processors:         OK
 [    2.489005] smpboot: Booting Node   4, Processors:         OK
 [    3.093005] smpboot: Booting Node   5, Processors:         OK
 [    3.698005] smpboot: Booting Node   6, Processors:         OK
 [    4.304005] smpboot: Booting Node   7, Processors:         OK
 [    4.961413] Brought up 64 CPUs

and this:

 [    0.072367] smpboot: Booting Node   0, Processors:           OK
 [    0.686329] Brought up 8 CPUs

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Libin <huawei.libin@huawei.com>
Cc: wangyijing@huawei.com
Cc: fenghua.yu@intel.com
Cc: guohanjun@huawei.com
Cc: paul.gortmaker@windriver.com
Link: http://lkml.kernel.org/r/20130927143554.GF4422@pd.tnic
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2013-09-28 10:10:26 +02:00

7 lines
104 B
C

#ifndef _ASM_X86_MISC_H
#define _ASM_X86_MISC_H
int num_digits(int val);
#endif /* _ASM_X86_MISC_H */