From 0a9950478fcb4f84ed6028bd9c5bd50f22c72cd3 Mon Sep 17 00:00:00 2001 From: Qiao Nuohan Date: Sat, 23 Aug 2014 11:27:58 +0800 Subject: [PATCH 08/23] x86_64: modify display_sys_stats() only to display online cpus' number function display_sys_stats will display the cpus' total number at initiation when crash is executed or when command sys is called. With this patch, only the total number of online cpus will be displayed. Signed-off-by: Qiao Nuohan --- kernel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel.c b/kernel.c index 6f675c2..6fc44c2 100755 --- a/kernel.c +++ b/kernel.c @@ -4781,7 +4781,8 @@ display_sys_stats(void) } fprintf(fp, " CPUS: %d\n", - machine_type("PPC64") ? get_cpus_to_display() : kt->cpus); + (machine_type("PPC64") || machine_type("X86_64")) ? + get_cpus_to_display() : kt->cpus); if (ACTIVE()) get_xtime(&kt->date); fprintf(fp, " DATE: %s\n", -- 1.8.5.3