From: Peter Zijlstra Date: Mon, 8 Mar 2010 12:51:12 +0000 (+0100) Subject: perf, x86: Don't reset the LBR as frequently X-Git-Tag: v2.6.35-rc1~522^2~217 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b83a46e7da4a948cc852ba7805dfb1a392dec861;p=pandora-kernel.git perf, x86: Don't reset the LBR as frequently If we reset the LBR on each first counter, simple counter rotation which first deschedules all counters and then reschedules the new ones will lead to LBR reset, even though we're still in the same task context. Reduce this by not flushing on the first counter but only flushing on different task contexts. Signed-off-by: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: paulus@samba.org Cc: eranian@google.com Cc: robert.richter@amd.com Cc: fweisbec@gmail.com LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed