[Crash-utility] [PATCH v2 3/4] crash: ARM: get online CPUs from cpu_active_mask
Liu Hua
sdu.liu at huawei.com
Mon Apr 28 15:15:07 UTC 2014
For ARM32 platfrom, The system will "offline" all CPUs except the
crashing one, by clear the cpu_online_mask. So we need find another
way to get online-CPUs number for crash utility.
This patch uses MAX(get_cpus_active(),get_cpus_online()) 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..84dd3ec 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 MAX(get_cpus_active(), get_cpus_online());
}
/*
--
1.9.0
More information about the Crash-utility
mailing list