Re: [PATCH] cpu hoptlug: avoid usage of smp_processor_id() in preemptible code

From: Ingo Molnar
Date: Wed Nov 02 2005 - 01:53:57 EST



* Heiko Carstens <heiko.carstens@xxxxxxxxxx> wrote:

> From: Heiko Carstens <heiko.carstens@xxxxxxxxxx>
>
> Replace smp_processor_id() with any_online_cpu(cpu_online_map) in
> order to avoid lots of "BUG: using smp_processor_id() in preemptible
> [00000001] code:..." messages in case taking a cpu online fails.

could you post the full message, including the stacktrace? I think this
patch just works around the debugging message, and there might be some
real bug to fix.

Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/