Hi,

On Thu, Dec 19, 2013 at 7:50 PM, Christoph Lameter <c...@linux.com> 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to