Re: [PATCH 0/4] x86_64: Optimize percpu accesses

From: Jeremy Fitzhardinge
Date: Fri Jul 25 2008 - 20:31:16 EST


Mike Travis wrote:
Yes, you're right, I wrote that quickly without really reading it back.
My point is that now that x86_read_percpu() and x86_write_percpu() do
evaluate to a single instruction (by definition atomic), then it doesn't
need to be surrounded by the preempt_disable()/preempt_enable() calls.

Yep, correct.

It appears as if I'm implying that's the case for get/put_cpu_var().

Right.

J
--
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/