--- zzzz-none-000/linux-2.6.28.10/lib/smp_processor_id.c 2009-05-02 18:54:43.000000000 +0000 +++ puma5-6360-529/linux-2.6.28.10/lib/smp_processor_id.c 2010-03-12 13:04:21.000000000 +0000 @@ -9,8 +9,9 @@ notrace unsigned int debug_smp_processor_id(void) { - unsigned long preempt_count = preempt_count(); int this_cpu = raw_smp_processor_id(); +#ifndef CONFIG_MIPS_MT_SMTC + unsigned long preempt_count = preempt_count(); if (likely(preempt_count)) goto out; @@ -43,11 +44,16 @@ "code: %s/%d\n", preempt_count() - 1, current->comm, current->pid); print_symbol("caller is %s\n", (long)__builtin_return_address(0)); + + printk(KERN_ERR "current->cpus_allowed:0x%x |this_cpu: %d |cpumask_of_cpu(this_cpu):0x%x |system_state:%d\n", + current->cpus_allowed, this_cpu, cpumask_of_cpu(this_cpu), system_state); + dump_stack(); out_enable: preempt_enable_no_resched_notrace(); out: +#endif /*--- #ifndef CONFIG_MIPS_MT_SMTC ---*/ return this_cpu; }