Re: [PATCH] __get_cpu_var should use __smp_processor_id() not smp_processor_id()

From: Ingo Molnar
Date: Mon Jan 17 2005 - 09:42:12 EST



* Chris Wedgwood <cw@xxxxxxxx> wrote:

> It seems logical that __get_cpu_var should use __smp_processor_id()
> rather than smp_processor_id(). Noticed when __get_cpu_var was making
> lots of noise with CONFIG_DEBUG_PREEMPT=y

no ... normally you should only use __get_cpu_var() if you know that you
are in a non-preempt case. It's a __ internal function for a reason.
Where did it trigger?

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/