Re: [PATCH RFC 3/3] x86: use mwait for trigger API

From: Jeremy Fitzhardinge
Date: Sat Aug 16 2008 - 17:50:51 EST


Arjan van de Ven wrote:
> monitor/mwait is rather really expensive.. are we really sure we want
> to use this?
> (from an Intel cpu perspective the answer is very likely no; but I don't
> know what AMD does here)
>

The intended use is when you're going to be waiting for a while (on the
order of microseconds or more). In the Xen case, I use this to block
the vcpu if we pass a few iterations without the condition being true.
While the mwait patch doesn't do this at present, it could.

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/