]> git.baikalelectronics.ru Git - kernel.git/commit
perf_counter, x86: fix zero irq_period counters
authorIngo Molnar <mingo@elte.hu>
Sun, 17 May 2009 08:04:45 +0000 (10:04 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 17 May 2009 10:27:37 +0000 (12:27 +0200)
commit4245350eac97f1b9ffe6e8472790b1cbd011653a
treeee36f662094f0f09575cd2fbc4e6a67a716081d0
parent1e25790d30159b6fa4f5598fc1382e0ec394aa0e
perf_counter, x86: fix zero irq_period counters

The quirk to irq_period unearthed an unrobustness we had in the
hw_counter initialization sequence: we left irq_period at 0, which
was then quirked up to 2 ... which then generated a _lot_ of
interrupts during 'perf stat' runs, slowed them down and skewed
the counter results in general.

Initialize irq_period to the maximum instead.

[ Impact: fix perf stat results ]

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Srivatsa Vaddagiri <vatsa@in.ibm.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_counter.c