forked from CyanogenMod/android_kernel_samsung_aries
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/lin…
…ux/kernel/git/tip/tip Pull x86 boot changes from Ingo Molnar: "Two changes that prettify and compactify the SMP bootup output from: smpboot: Booting Node 0, Processors #1 CyanogenMod#2 CyanogenMod#3 OK smpboot: Booting Node 1, Processors CyanogenMod#4 CyanogenMod#5 coolya#6 coolya#7 OK smpboot: Booting Node 2, Processors coolya#8 coolya#9 coolya#10 coolya#11 OK smpboot: Booting Node 3, Processors coolya#12 #13 #14 #15 OK Brought up 16 CPUs to something like: x86: Booting SMP configuration: .... node #0, CPUs: #1 CyanogenMod#2 CyanogenMod#3 .... node #1, CPUs: CyanogenMod#4 CyanogenMod#5 coolya#6 coolya#7 .... node CyanogenMod#2, CPUs: coolya#8 coolya#9 coolya#10 coolya#11 .... node CyanogenMod#3, CPUs: coolya#12 #13 #14 #15 x86: Booted up 4 nodes, 16 CPUs" * 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/boot: Further compress CPUs bootup message x86: Improve the printout of the SMP bootup CPU table
- Loading branch information
Showing
5 changed files
with
64 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#ifndef _ASM_X86_MISC_H | ||
#define _ASM_X86_MISC_H | ||
|
||
int num_digits(int val); | ||
|
||
#endif /* _ASM_X86_MISC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Count the digits of @val including a possible sign. | ||
* | ||
* (Typed on and submitted from hpa's mobile phone.) | ||
*/ | ||
int num_digits(int val) | ||
{ | ||
int m = 10; | ||
int d = 1; | ||
|
||
if (val < 0) { | ||
d++; | ||
val = -val; | ||
} | ||
|
||
while (val >= m) { | ||
m *= 10; | ||
d++; | ||
} | ||
return d; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters