diff options
| author | Iliyan Malchev <malchev@google.com> | 2015-05-15 21:32:40 -0700 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-10-03 13:21:21 +0200 |
| commit | a7bc356f0e8bd81f08581e6cc1df032d5235089a (patch) | |
| tree | 475873539a7ffbd622935c04ff0a2c3b4222de5b /arch/arm | |
| parent | 6ec7cd4afc41a06ee14baae5f38d916266651cf0 (diff) | |
fix /proc/cpuinfo
Use for_each_possible_cpu() instead of for_each_online_cpu() when enumerating
the cores in /proc/cpuinfo.
b/18108865 cpu info count is wrong
Change-Id: Id1c81cb00b03b0f8d6a417037a4fd43359650c6a
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'arch/arm')
| -rw-r--r-- | arch/arm/kernel/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 8e18e1069..2bf1da6db 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -966,7 +966,7 @@ static int c_show(struct seq_file *m, void *v) seq_printf(m, "Processor\t: %s rev %d (%s)\n", cpu_name, read_cpuid_id() & 15, elf_platform); - for_each_online_cpu(i) { + for_each_possible_cpu(i) { /* * glibc reads /proc/cpuinfo to determine the number of * online processors, looking for lines beginning with |
