Re: [PATCH 0/2] jump label: 2.6.38 updates

From: H. Peter Anvin
Date: Wed Feb 16 2011 - 22:20:55 EST


On 02/16/2011 05:55 PM, Masami Hiramatsu wrote:
>
> Hmm, I think that is miss-coding ll/sc.
> If I understand correctly, usually cache invalidation should be done
> right before storing value, as MSI protocol does.
> (or, sc should atomically invalidate the cache line)
>

I suspect in this case one should flush the cache line before ll (a
cache flush will typically invalidate the ll/sc link.)

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.

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