From d902bfe895de8e199139f7ddd7aeaa4a93dac72e Mon Sep 17 00:00:00 2001 From: Qiao Nuohan Date: Sat, 23 Aug 2014 16:44:33 +0800 Subject: [PATCH 14/23] x86_64: modify timer only to display online cpus' data This patch will skip offline cpus and only display timer queue entries on online cpus. Signed-off-by: Qiao Nuohan --- kernel.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel.c b/kernel.c index 60cbfa8..f83d0bc 100755 --- a/kernel.c +++ b/kernel.c @@ -7417,6 +7417,11 @@ dump_timer_data_tvec_bases_v2(void) cpu = 0; next_cpu: + if (check_offline_cpu(cpu)) { + if (++cpu < kt->cpus) + goto next_cpu; + } + count = 0; td = (struct timer_data *)NULL; -- 1.8.5.3