From 86c18e3fe74e96a3b9c1c029ca56fbca201ddc34 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Sun, 24 Jul 2016 09:27:24 +1000 Subject: cpu: Display number of started CPUs during boot Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Stewart Smith --- core/cpu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'core/cpu.c') diff --git a/core/cpu.c b/core/cpu.c index eb22503..4ba360f 100644 --- a/core/cpu.c +++ b/core/cpu.c @@ -832,12 +832,13 @@ void init_all_cpus(void) void cpu_bringup(void) { struct cpu_thread *t; + uint32_t count = 0; prlog(PR_INFO, "CPU: Setting up secondary CPU state\n"); op_display(OP_LOG, OP_MOD_CPU, 0x0000); - /* Tell everybody to chime in ! */ + /* Tell everybody to chime in ! */ prlog(PR_INFO, "CPU: Calling in all processors...\n"); cpu_secondary_start = 1; sync(); @@ -855,9 +856,10 @@ void cpu_bringup(void) sync(); } smt_medium(); + count++; } - prlog(PR_INFO, "CPU: All processors called in...\n"); + prlog(PR_NOTICE, "CPU: All %d processors called in...\n", count); op_display(OP_LOG, OP_MOD_CPU, 0x0003); } -- cgit v1.1