Message ID | 4A171F44.6090608@windriver.com |
---|---|
State | Superseded |
Delegated to: | David Miller |
Headers | show |
From: "Hong H. Pham" <hong.pham@windriver.com> Date: Fri, 22 May 2009 17:55:16 -0400 > As a side note, here's a dump of cpu_data() on a 2 way T5440. > There's a hole between 48 and 71. > > [714162.134215] Brought up 96 CPUs Of course there is, you only have 96 out of 128 cpus enabled so there will be holes wherever the cores have been disabled. -- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/sparc/kernel/smp_64.c b/arch/sparc/kernel/smp_64.c index 54906aa..7fa909f 100644 --- a/arch/sparc/kernel/smp_64.c +++ b/arch/sparc/kernel/smp_64.c @@ -1353,8 +1353,20 @@ void __cpu_die(unsigned int cpu) } #endif +static void dump_cpu_data(void) +{ + int i; + + for_each_online_cpu(i) { + printk(KERN_DEBUG "CPU %i: node=%i core_id=%i proc_id=%i\n", + i, cpu_to_node(i), + cpu_data(i).core_id, cpu_data(i).proc_id); + } +} + void __init smp_cpus_done(unsigned int max_cpus) { + dump_cpu_data(); } void smp_send_reschedule(int cpu)