aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_counter.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-04-06 05:45:02 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-07 04:48:55 -0400
commit671dec5daf3b3c43c5777be282f00120a44cf37f (patch)
treea7563d041c7c0bd87d6d118e1063f9aa50ff5fec /include/linux/perf_counter.h
parent3c446b3d3b38f991f97e9d2df0ad26a60a94dcff (diff)
perf_counter: generalize pending infrastructure
Prepare the pending infrastructure to do more than wakeups. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> LKML-Reference: <20090406094517.634732847@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r--include/linux/perf_counter.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index 8d5d11b8d011..977fb15a53f3 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -321,8 +321,9 @@ struct perf_mmap_data {
321 void *data_pages[0]; 321 void *data_pages[0];
322}; 322};
323 323
324struct perf_wakeup_entry { 324struct perf_pending_entry {
325 struct perf_wakeup_entry *next; 325 struct perf_pending_entry *next;
326 void (*func)(struct perf_pending_entry *);
326}; 327};
327 328
328/** 329/**
@@ -401,7 +402,7 @@ struct perf_counter {
401 wait_queue_head_t waitq; 402 wait_queue_head_t waitq;
402 struct fasync_struct *fasync; 403 struct fasync_struct *fasync;
403 /* optional: for NMIs */ 404 /* optional: for NMIs */
404 struct perf_wakeup_entry wakeup; 405 struct perf_pending_entry pending;
405 406
406 void (*destroy)(struct perf_counter *); 407 void (*destroy)(struct perf_counter *);
407 struct rcu_head rcu_head; 408 struct rcu_head rcu_head;