RE: [PATCH] fix call of smp_processor_id() by XPC while preemptible

From: Luck, Tony <tony.luck_at_intel.com>
Date: 2005-07-13 05:39:55
>XPC calls smp_processor_id() twice from xpc_setup_infrastructure() with
>preemption enabled, which gets flagged if 'DEBUG_PREEMPT=y'. This patch
>disables preemption around a now single call to smp_processor_id(). Note
>that it doesn't matter if the thread is moved to another processor once
>it has the processor ID.

So the code becomes effectively:

	cpuid = pick_a_random_online_cpuid();

What is the higher level function that you are doing here that is OK
with that?

-Tony

P.S. The cpu number you picked may not still be online by the time
you use it.
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Jul 12 15:49:10 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:40 EST