diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-09-19 09:28:21 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-09-21 05:21:08 -0400 |
commit | 82cd02c16be99cba6a97d38488aee8807580a202 (patch) | |
tree | 36d1d79b87ed91df0a0a91164a3acd21cab2e971 /arch/ppc/kernel | |
parent | 86a5cddbd9676b129cfa2ed7a1a11759d3b2b512 (diff) |
[PATCH] powerpc: reduce oprofile/common.c differences
Rename and slightly modify {request,free}_perfmon_irq in the ppc code.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/kernel')
-rw-r--r-- | arch/ppc/kernel/perfmon.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/ppc/kernel/perfmon.c b/arch/ppc/kernel/perfmon.c index fa1dad96b83..91e2786ea09 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 */ |
64 | int request_perfmon_irq(void (*handler)(struct pt_regs *)) | 64 | int 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 | ||
82 | void free_perfmon_irq(void) | 82 | void 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 | ||
91 | EXPORT_SYMBOL(perf_irq); | 91 | EXPORT_SYMBOL(perf_irq); |
92 | EXPORT_SYMBOL(request_perfmon_irq); | 92 | EXPORT_SYMBOL(reserve_pmc_hardware); |
93 | EXPORT_SYMBOL(free_perfmon_irq); | 93 | EXPORT_SYMBOL(release_pmc_hardware); |