aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc/kernel/perfmon.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc/kernel/perfmon.c')
-rw-r--r--arch/ppc/kernel/perfmon.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/ppc/kernel/perfmon.c b/arch/ppc/kernel/perfmon.c
index fa1dad96b830..91e2786ea097 100644
--- a/arch/ppc/kernel/perfmon.c
+++ b/arch/ppc/kernel/perfmon.c
@@ -61,7 +61,7 @@ void (*perf_irq)(struct pt_regs *) = dummy_perf;
61 61
62/* Grab the interrupt, if it's free. 62/* Grab the interrupt, if it's free.
63 * Returns 0 on success, -1 if the interrupt is taken already */ 63 * Returns 0 on success, -1 if the interrupt is taken already */
64int request_perfmon_irq(void (*handler)(struct pt_regs *)) 64int reserve_pmc_hardware(void (*handler)(struct pt_regs *))
65{ 65{
66 int err = 0; 66 int err = 0;
67 67
@@ -71,7 +71,7 @@ int request_perfmon_irq(void (*handler)(struct pt_regs *))
71 perf_irq = handler; 71 perf_irq = handler;
72 else { 72 else {
73 pr_info("perfmon irq already handled by %p\n", perf_irq); 73 pr_info("perfmon irq already handled by %p\n", perf_irq);
74 err = -1; 74 err = -EBUSY;
75 } 75 }
76 76
77 spin_unlock(&perfmon_lock); 77 spin_unlock(&perfmon_lock);
@@ -79,7 +79,7 @@ int request_perfmon_irq(void (*handler)(struct pt_regs *))
79 return err; 79 return err;
80} 80}
81 81
82void free_perfmon_irq(void) 82void release_pmc_hardware(void)
83{ 83{
84 spin_lock(&perfmon_lock); 84 spin_lock(&perfmon_lock);
85 85
@@ -89,5 +89,5 @@ void free_perfmon_irq(void)
89} 89}
90 90
91EXPORT_SYMBOL(perf_irq); 91EXPORT_SYMBOL(perf_irq);
92EXPORT_SYMBOL(request_perfmon_irq); 92EXPORT_SYMBOL(reserve_pmc_hardware);
93EXPORT_SYMBOL(free_perfmon_irq); 93EXPORT_SYMBOL(release_pmc_hardware);