aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2009-06-15 07:45:16 -0400
committerIngo Molnar <mingo@elte.hu>2009-06-15 10:12:26 -0400
commit9974458e2f9a11dbd2f4bd14fab5a79af4907b41 (patch)
treed998a40f44a626a6eb1385a90c7979bddd5b6397 /include
parent90c8f954534ba15e4542ab00dd9f0e58b071518c (diff)
perf_counter: Make set_perf_counter_pending() declaration common
At present, every architecture that supports perf_counters has to declare set_perf_counter_pending() in its arch-specific headers. This consolidates the declarations into a single declaration in one common place, include/linux/perf_counter.h. On powerpc, we continue to provide a static inline definition of set_perf_counter_pending() in the powerpc hw_irq.h. Also, this removes from the x86 perf_counter.h the unused null definitions of {test,clear}_perf_counter_pending. Reported-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: benh@kernel.crashing.org LKML-Reference: <18998.13388.920691.523227@cargo.ozlabs.ibm.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r--include/linux/perf_counter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index 1b3118a1023a..eccae437fe37 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -604,6 +604,7 @@ extern void perf_counter_task_tick(struct task_struct *task, int cpu);
604extern int perf_counter_init_task(struct task_struct *child); 604extern int perf_counter_init_task(struct task_struct *child);
605extern void perf_counter_exit_task(struct task_struct *child); 605extern void perf_counter_exit_task(struct task_struct *child);
606extern void perf_counter_free_task(struct task_struct *task); 606extern void perf_counter_free_task(struct task_struct *task);
607extern void set_perf_counter_pending(void);
607extern void perf_counter_do_pending(void); 608extern void perf_counter_do_pending(void);
608extern void perf_counter_print_debug(void); 609extern void perf_counter_print_debug(void);
609extern void __perf_disable(void); 610extern void __perf_disable(void);