diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-06-02 09:27:45 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-02 15:45:31 -0400 |
commit | 8a016db386195b193e2a8aeddff9fe937dcb7a40 (patch) | |
tree | 0394b2d9c2723221a50766077b7a5fa32e80f833 | |
parent | b23f3325ed465f1bd914384884269af0d106778c (diff) |
perf_counter: Remove the last nmi/irq bits
IRQ (non-NMI) sampling is not used anymore - remove the last few bits.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/kernel/cpu/perf_counter.c | 6 | ||||
-rw-r--r-- | include/linux/perf_counter.h | 4 |
2 files changed, 1 insertions, 9 deletions
diff --git a/arch/x86/kernel/cpu/perf_counter.c b/arch/x86/kernel/cpu/perf_counter.c index ec06aa5e9282..9e144fbebd20 100644 --- a/arch/x86/kernel/cpu/perf_counter.c +++ b/arch/x86/kernel/cpu/perf_counter.c | |||
@@ -284,12 +284,6 @@ static int __hw_perf_counter_init(struct perf_counter *counter) | |||
284 | if (!hw_event->exclude_kernel) | 284 | if (!hw_event->exclude_kernel) |
285 | hwc->config |= ARCH_PERFMON_EVENTSEL_OS; | 285 | hwc->config |= ARCH_PERFMON_EVENTSEL_OS; |
286 | 286 | ||
287 | /* | ||
288 | * Use NMI events all the time: | ||
289 | */ | ||
290 | hwc->nmi = 1; | ||
291 | hw_event->nmi = 1; | ||
292 | |||
293 | if (!hwc->sample_period) | 287 | if (!hwc->sample_period) |
294 | hwc->sample_period = x86_pmu.max_period; | 288 | hwc->sample_period = x86_pmu.max_period; |
295 | 289 | ||
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index 1fcd3cc93855..cef9931793fd 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -140,7 +140,6 @@ struct perf_counter_hw_event { | |||
140 | __u64 read_format; | 140 | __u64 read_format; |
141 | 141 | ||
142 | __u64 disabled : 1, /* off by default */ | 142 | __u64 disabled : 1, /* off by default */ |
143 | nmi : 1, /* NMI sampling */ | ||
144 | inherit : 1, /* children inherit it */ | 143 | inherit : 1, /* children inherit it */ |
145 | pinned : 1, /* must always be on PMU */ | 144 | pinned : 1, /* must always be on PMU */ |
146 | exclusive : 1, /* only group on PMU */ | 145 | exclusive : 1, /* only group on PMU */ |
@@ -153,7 +152,7 @@ struct perf_counter_hw_event { | |||
153 | comm : 1, /* include comm data */ | 152 | comm : 1, /* include comm data */ |
154 | freq : 1, /* use freq, not period */ | 153 | freq : 1, /* use freq, not period */ |
155 | 154 | ||
156 | __reserved_1 : 51; | 155 | __reserved_1 : 52; |
157 | 156 | ||
158 | __u32 wakeup_events; /* wakeup every n events */ | 157 | __u32 wakeup_events; /* wakeup every n events */ |
159 | __u32 __reserved_2; | 158 | __u32 __reserved_2; |
@@ -354,7 +353,6 @@ struct hw_perf_counter { | |||
354 | u64 config; | 353 | u64 config; |
355 | unsigned long config_base; | 354 | unsigned long config_base; |
356 | unsigned long counter_base; | 355 | unsigned long counter_base; |
357 | int nmi; | ||
358 | int idx; | 356 | int idx; |
359 | }; | 357 | }; |
360 | union { /* software */ | 358 | union { /* software */ |