[Crash-utility] [PATCH 2/3] crash: ARM: get online CPUs from cpu_active_mask

Liu Hua sdu.liu at huawei.com
Fri Apr 25 06:16:06 UTC 2014


For ARM32 platfrom, The system will "offline" all CPUs except the
crashing one, by clear the cpu_online_mask. So we need to find 
another way to get online-CPUs number for crash utility.

This patch uses cpu_active_mask to get that value.

Signed-off-by: Liu Hua <sdu.liu at huawei.com>
---
 arm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arm.c b/arm.c
index 3c38cd5..c94d7bf 100644
--- a/arm.c
+++ b/arm.c
@@ -1518,7 +1518,7 @@ arm_display_machine_stats(void)
 static int
 arm_get_smp_cpus(void)
 {
-	return get_cpus_online();
+	return get_cpus_active();
 }
 
 /*
-- 
1.9.0




More information about the Crash-utility mailing list