perf_counter, x86: make x86_pmu data a static struct
authorRobert Richter <robert.richter@amd.com>
Wed, 29 Apr 2009 10:47:11 +0000 (12:47 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 29 Apr 2009 12:51:07 +0000 (14:51 +0200)
commit4a06bd8508f65ad1dd5cd2046b85694813fa36a2
tree1a41073d4763cf4e7a7e80400bc5c4a453387b04
parent72eae04d3a3075c26d39e1e685acfc8e8c29db64
perf_counter, x86: make x86_pmu data a static struct

Instead of using a pointer to reference to the x86 pmu we now have one
single data structure that is initialized at the beginning. This saves
the pointer access when using this memory.

[ Impact: micro-optimization ]

Signed-off-by: Robert Richter <robert.richter@amd.com>
Cc: Paul Mackerras <paulus@samba.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1241002046-8832-15-git-send-email-robert.richter@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_counter.c