Commit Graph

2 Commits

Author SHA1 Message Date
Borislav Petkov a17bce4d1d x86/boot: Further compress CPUs bootup message
Turn it into (for example):

[    0.073380] x86: Booting SMP configuration:
[    0.074005] .... node   , CPUs:                            
[    0.603005] .... node   , CPUs:                    
[    1.200005] .... node   , CPUs:                  
[    1.796005] .... node   , CPUs:                  
[    2.393005] .... node   , CPUs:                  
[    2.996005] .... node   , CPUs:                  
[    3.600005] .... node   , CPUs:                  
[    4.202005] .... node   , CPUs:                  
[    4.811005] .... node   , CPUs:                  
[    5.421006] .... node   , CPUs:                  
[    6.032005] .... node  , CPUs:                  
[    6.648006] .... node  , CPUs:                  
[    7.262005] .... node  , CPUs:              
[    7.865005] .... node  , CPUs:          
[    8.466005] .... node  , CPUs:          
[    9.073006] .... node  , CPUs:          
[    9.679901] x86: Booted up 16 nodes, 128 CPUs

and drop useless elements.

Change num_digits() to hpa's division-avoiding, cell-phone-typed
version which he went at great lengths and pains to submit on a
Saturday evening.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: huawei.libin@huawei.com
Cc: wangyijing@huawei.com
Cc: fenghua.yu@intel.com
Cc: guohanjun@huawei.com
Cc: paul.gortmaker@windriver.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20130930095624.GB16383@pd.tnic
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2013-10-01 10:52:30 +02:00
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