diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-09-14 20:43:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-09-14 20:43:45 -0400 |
commit | 7ef6e97380a1cb0f38cab795fe696f43c71d3ae9 (patch) | |
tree | 0557d01616fb4a41bfc98e6908ace912fa6d717c /include | |
parent | 7076cca9a700af5ccb0bd5eb7261dcfd7356dc5a (diff) | |
parent | e4390fa632d7c592e68e8106b7daea923ac995f5 (diff) |
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf fixes from Ingo Molnar:
"This tree includes various fixes"
Ingo really needs to improve on the whole "explain git pull" part.
"Various fixes" indeed.
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
perf/hwpb: Invoke __perf_event_disable() if interrupts are already disabled
perf/x86: Enable Intel Cedarview Atom suppport
perf_event: Switch to internal refcount, fix race with close()
oprofile, s390: Fix uninitialized memory access when writing to oprofilefs
perf/x86: Fix microcode revision check for SNB-PEBS
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/perf_event.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 7602ccb3f40e..33ed9d605f91 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -926,7 +926,7 @@ struct perf_event { | |||
926 | struct hw_perf_event hw; | 926 | struct hw_perf_event hw; |
927 | 927 | ||
928 | struct perf_event_context *ctx; | 928 | struct perf_event_context *ctx; |
929 | struct file *filp; | 929 | atomic_long_t refcount; |
930 | 930 | ||
931 | /* | 931 | /* |
932 | * These accumulate total time (in nanoseconds) that children | 932 | * These accumulate total time (in nanoseconds) that children |
@@ -1296,6 +1296,7 @@ extern int perf_swevent_get_recursion_context(void); | |||
1296 | extern void perf_swevent_put_recursion_context(int rctx); | 1296 | extern void perf_swevent_put_recursion_context(int rctx); |
1297 | extern void perf_event_enable(struct perf_event *event); | 1297 | extern void perf_event_enable(struct perf_event *event); |
1298 | extern void perf_event_disable(struct perf_event *event); | 1298 | extern void perf_event_disable(struct perf_event *event); |
1299 | extern int __perf_event_disable(void *info); | ||
1299 | extern void perf_event_task_tick(void); | 1300 | extern void perf_event_task_tick(void); |
1300 | #else | 1301 | #else |
1301 | static inline void | 1302 | static inline void |
@@ -1334,6 +1335,7 @@ static inline int perf_swevent_get_recursion_context(void) { return -1; } | |||
1334 | static inline void perf_swevent_put_recursion_context(int rctx) { } | 1335 | static inline void perf_swevent_put_recursion_context(int rctx) { } |
1335 | static inline void perf_event_enable(struct perf_event *event) { } | 1336 | static inline void perf_event_enable(struct perf_event *event) { } |
1336 | static inline void perf_event_disable(struct perf_event *event) { } | 1337 | static inline void perf_event_disable(struct perf_event *event) { } |
1338 | static inline int __perf_event_disable(void *info) { return -1; } | ||
1337 | static inline void perf_event_task_tick(void) { } | 1339 | static inline void perf_event_task_tick(void) { } |
1338 | #endif | 1340 | #endif |
1339 | 1341 | ||