Re: [PATCH -tip] perf, x86: Make a second write to performancecounter if needed

From: Peter Zijlstra
Date: Mon Jun 07 2010 - 05:48:22 EST


On Thu, 2010-06-03 at 01:23 +0400, Cyrill Gorcunov wrote:
> On Netburst PMU we need a second write to a performance counter
> due to cpu erratum.
>
> A simple flag test instead of alternative instructions was choosen
> because wrmsrl is already a macro and if virtualization is turned
> on will need an additional wrapper call which is more expencise.
>
> nb: we should propably switch to jump-labels as only this facility
> reach the mainline.

OK. Thanks Cyrill.


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