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/powerpc/oprofile/common.c | |
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/powerpc/oprofile/common.c')
-rw-r--r-- | arch/powerpc/oprofile/common.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/powerpc/oprofile/common.c b/arch/powerpc/oprofile/common.c index 486314a0defd..88b4118fd0c5 100644 --- a/arch/powerpc/oprofile/common.c +++ b/arch/powerpc/oprofile/common.c | |||
@@ -46,19 +46,12 @@ static void op_handle_interrupt(struct pt_regs *regs) | |||
46 | 46 | ||
47 | static int op_powerpc_setup(void) | 47 | static int op_powerpc_setup(void) |
48 | { | 48 | { |
49 | #ifdef __powerpc64__ | ||
50 | int err; | 49 | int err; |
51 | 50 | ||
52 | /* Grab the hardware */ | 51 | /* Grab the hardware */ |
53 | err = reserve_pmc_hardware(op_handle_interrupt); | 52 | err = reserve_pmc_hardware(op_handle_interrupt); |
54 | if (err) | 53 | if (err) |
55 | return err; | 54 | return err; |
56 | #else /* __powerpc64__ */ | ||
57 | /* Install our interrupt handler into the existing hook. */ | ||
58 | if (request_perfmon_irq(&op_handle_interrupt)) | ||
59 | return -EBUSY; | ||
60 | mb(); | ||
61 | #endif /* __powerpc64__ */ | ||
62 | 55 | ||
63 | /* Pre-compute the values to stuff in the hardware registers. */ | 56 | /* Pre-compute the values to stuff in the hardware registers. */ |
64 | model->reg_setup(ctr, &sys, model->num_counters); | 57 | model->reg_setup(ctr, &sys, model->num_counters); |
@@ -78,13 +71,7 @@ static int op_powerpc_setup(void) | |||
78 | 71 | ||
79 | static void op_powerpc_shutdown(void) | 72 | static void op_powerpc_shutdown(void) |
80 | { | 73 | { |
81 | #ifdef __powerpc64__ | ||
82 | release_pmc_hardware(); | 74 | release_pmc_hardware(); |
83 | #else /* __powerpc64__ */ | ||
84 | mb(); | ||
85 | /* Remove our interrupt handler. We may be removing this module. */ | ||
86 | free_perfmon_irq(); | ||
87 | #endif /* __powerpc64__ */ | ||
88 | } | 75 | } |
89 | 76 | ||
90 | static void op_powerpc_cpu_start(void *dummy) | 77 | static void op_powerpc_cpu_start(void *dummy) |