Message ID | 1401861438-13612-1-git-send-email-sanjay.rawat@linaro.org |
---|---|
State | New |
Headers | show |
diff --git a/src/cpu/cpu.cpp b/src/cpu/cpu.cpp index b3b6166..105c066 100644 --- a/src/cpu/cpu.cpp +++ b/src/cpu/cpu.cpp @@ -296,6 +296,18 @@ void enumerate_cpus(void) number = -2; } } + /* bogomips is removed in ARM, using CPU revision to enumerate */ + if (strncasecmp(line, "CPU revision\t", 13) == 0) { + if (number == -1) { + /* Not all /proc/cpuinfo include "processor\t". */ + number = 0; + } + if (number >= 0) { + handle_one_cpu(number, vendor, family, model); + set_max_cpu(number); + number = -2; + } + } }
bogomips is removed by timer-backed delay loop (commit 9fc2105a) in ARM kernel. Using other suitable string to decide to enumerate each cpu. Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org> --- src/cpu/cpu.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+)