Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147606
b: refs/heads/master
c: 8a016db
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Jun 2, 2009
1 parent 46424d8 commit fc8367d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b23f3325ed465f1bd914384884269af0d106778c
refs/heads/master: 8a016db386195b193e2a8aeddff9fe937dcb7a40
6 changes: 0 additions & 6 deletions trunk/arch/x86/kernel/cpu/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,6 @@ static int __hw_perf_counter_init(struct perf_counter *counter)
if (!hw_event->exclude_kernel)
hwc->config |= ARCH_PERFMON_EVENTSEL_OS;

/*
* Use NMI events all the time:
*/
hwc->nmi = 1;
hw_event->nmi = 1;

if (!hwc->sample_period)
hwc->sample_period = x86_pmu.max_period;

Expand Down
4 changes: 1 addition & 3 deletions trunk/include/linux/perf_counter.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ struct perf_counter_hw_event {
__u64 read_format;

__u64 disabled : 1, /* off by default */
nmi : 1, /* NMI sampling */
inherit : 1, /* children inherit it */
pinned : 1, /* must always be on PMU */
exclusive : 1, /* only group on PMU */
Expand All @@ -153,7 +152,7 @@ struct perf_counter_hw_event {
comm : 1, /* include comm data */
freq : 1, /* use freq, not period */

__reserved_1 : 51;
__reserved_1 : 52;

__u32 wakeup_events; /* wakeup every n events */
__u32 __reserved_2;
Expand Down Expand Up @@ -354,7 +353,6 @@ struct hw_perf_counter {
u64 config;
unsigned long config_base;
unsigned long counter_base;
int nmi;
int idx;
};
union { /* software */
Expand Down

0 comments on commit fc8367d

Please sign in to comment.