From: Cyrill Gorcunov Date: Wed, 2 Jun 2010 21:23:04 +0000 (+0400) Subject: perf, x86: Make a second write to performance counter if needed X-Git-Tag: v2.6.36-rc1~532^2~80 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68aa00ac0a82e9a876c799bf6be7622b8f1c8517;p=pandora-kernel.git perf, x86: Make a second write to performance counter if needed 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. Signed-off-by: Cyrill Gorcunov Signed-off-by: Peter Zijlstra Cc: Robert Richter Cc: Lin Ming Cc: Arnaldo Carvalho de Melo Cc: Frederic Weisbecker LKML-Reference: <20100602212304.GC5264@lenovo> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed