Re: [PATCH 37/40] alpha: Replace __get_cpu_var

From: Max Filippov
Date: Thu Dec 19 2013 - 16:47:17 EST


Hi,

On Thu, Dec 19, 2013 at 7:50 PM, Christoph Lameter <cl@xxxxxxxxx> wrote:

[...]

> 5. Assignment to a per cpu variable
>
> DEFINE_PER_CPU(int, y)
> __get_cpu_var(y) = x;
>
> Converts to
>
> this_cpu_write(y, x);

Doesn't it actually convert to __this_cpu_write(y, x); as there were
no atomicity in the original assignment?

--
Thanks.
-- Max
--
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/