perf_counter, x86: speed up the scheduling fast-path
authorIngo Molnar <mingo@elte.hu>
Sun, 17 May 2009 17:37:25 +0000 (19:37 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 18 May 2009 07:37:09 +0000 (09:37 +0200)
commitb68f1d2e7aa21029d73c7d453a8046e95d351740
tree2fa9e94f340e84e037bce4d3e3ffd5a6f88a9039
parentc0daaf3f1f672defa3a45ca449b76d0e86c55892
perf_counter, x86: speed up the scheduling fast-path

We have to set up the LVT entry only at counter init time, not at
every switch-in time.

There's friction between NMI and non-NMI use here - we'll probably
remove the per counter configurability of it - but until then, dont
slow down things ...

[ Impact: micro-optimization ]

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>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_counter.c