Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98d835ff authored by Jin Hong's avatar Jin Hong Committed by Matt Wagantall
Browse files

arm: show present cpu instead of online cpu in /proc/cpuinfo



Some userspace applications use /proc/cpuinfo to determine how many CPUs
the system has. CPU hotplug can offline a CPU at runtime and causing the
offline CPU not present in /proc/cpuinfo if we only show online cpu in
/proc/cpuinfo.

CRs-Fixed: 354430
Change-Id: I22a15d2d141c713dcd4abaa8bb74ecad6508900f
Signed-off-by: default avatarJin Hong <jinh@codeaurora.org>
parent 85586c29
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1034,7 +1034,7 @@ static int c_show(struct seq_file *m, void *v)
	int i, j;
	u32 cpuid;

	for_each_online_cpu(i) {
	for_each_present_cpu(i) {
		/*
		 * glibc reads /proc/cpuinfo to determine the number of
		 * online processors, looking for lines beginning with