x86/smpboot: Fix announce_cpu() to printk() the last "OK" properly
x86/smpboot: Fix announce_cpu() to printk() the last "OK" properly

When booting secondary CPUs, announce_cpu() is called to show which cpu has
been brought up. For example:

[    0.402751] smpboot: Booting Node   0, Processors  #1 #2 #3 #4 #5 OK
[    0.525667] smpboot: Booting Node   1, Processors  #6 #7 #8 #9 #10 #11 OK
[    0.755592] smpboot: Booting Node   0, Processors  #12 #13 #14 #15 #16 #17 OK
[    0.890495] smpboot: Booting Node   1, Processors  #18 #19 #20 #21 #22 #23

But the last "OK" is lost, because 'nr_cpu_ids-1' represents the maximum
possible cpu id. It should use the maximum present cpu id in case not all
CPUs booted up.

Signed-off-by: Libin <907cb18f632f56970a1dc2ab34acaa162917635f@huawei.com>
Cc: <60f0895b8713b53451ddbd252a38d61aef111c67@huawei.com>
Cc: <ac442ed3e729ed4f09d087e9c319e1c47c72d6f1@huawei.com>
Cc: <94fe9a7ec8ff966c1952fe98e39b5ae3a7477695@intel.com>
Cc: <ae947f3c8df96e1dc851c5e3e5a930ce6d3f1f74@windriver.com>
Link: http://lkml.kernel.org/r/1378378676-18276-1-git-send-email-907cb18f632f56970a1dc2ab34acaa162917635f@huawei.com
[ tweaked the changelog, removed unnecessary line break, tweaked the format to align the fields vertically. ]
Signed-off-by: Ingo Molnar <9dbbbf0688fedc85ad4da37637f1a64b8c718ee2@kernel.org>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs