Re: [PATCH v2 1/4] x86, mwaitt: add monitorx and mwaitx instruction

From: Huang Rui
Date: Tue Jun 09 2015 - 05:51:42 EST


On Tue, Jun 09, 2015 at 04:23:06PM +0800, Peter Zijlstra wrote:
> On Tue, Jun 09, 2015 at 11:13:38AM +0800, Huang Rui wrote:
> >
> > MWAITX ECX[1]: enable timer if set
> > MWAITX EBX[31:0]: max wait time expressed in SW P0 clocks
> >
> > The software P0 frequency is the same as the TSC frequency.
> >
> > Max timeout = EBX/(TSC frequency)
>
> ^ that, would make a lovely comment for this v
>

Any better suggestion? EBX * (TSC cycle) ? :)

Thanks,
Rui
--
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/