On Thursday 12 June 2008 22:56, Cliff Wickman wrote:
Thanks, that makes it perfectly clear to me now (the intent, not
the details of the code :))
So long as this raises a maskable interrupt on each target CPU, it
doesn't break x86's lockless get_user_pages :)
Ah, so you can send a small message with the IPI, and that can be
decoded and used by the target without invoking the cc protocol.
Seems like pretty sweet functionality.
I guess TLB flushing is an obvious candidate, but it could be
quite useful for other operations as well. I wonder if it couldn't
be used to create a slightly more advanced API (than send_IPI)
which other platforms can just implement using cache coherency for
the payload...
For example, some classes of smp_call_function could use this too.
But for now I don't see anything wrong with getting this patch
upstream and looking to generalise it later.
--