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(a)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