diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-10-28 09:56:04 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-10-28 09:56:04 -0400 |
commit | c6b9dafce3e3b434a3e7ffd5072815c03d18cc84 (patch) | |
tree | 111b89d53b0d66d1220d20aaa37f9dbd29658ab4 /arch/arm/oprofile/init.c | |
parent | 55f052341ff75e5815b1f7f4d2d3b69314ea8712 (diff) |
[ARM] 4/4 Combine oprofile common and init code
There is nothing special about having the init code separate from
the common code, so combine the two.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/oprofile/init.c')
-rw-r--r-- | arch/arm/oprofile/init.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/arch/arm/oprofile/init.c b/arch/arm/oprofile/init.c deleted file mode 100644 index ccd8c54934a2..000000000000 --- a/arch/arm/oprofile/init.c +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | /** | ||
2 | * @file init.c | ||
3 | * | ||
4 | * @remark Copyright 2004 Oprofile Authors | ||
5 | * @remark Read the file COPYING | ||
6 | * | ||
7 | * @author Zwane Mwaikambo | ||
8 | */ | ||
9 | |||
10 | #include <linux/oprofile.h> | ||
11 | #include <linux/init.h> | ||
12 | #include <linux/errno.h> | ||
13 | #include "op_arm_model.h" | ||
14 | |||
15 | int __init oprofile_arch_init(struct oprofile_operations *ops) | ||
16 | { | ||
17 | int ret = -ENODEV; | ||
18 | |||
19 | #ifdef CONFIG_CPU_XSCALE | ||
20 | ret = op_arm_init(ops, &op_xscale_spec); | ||
21 | #endif | ||
22 | |||
23 | ops->backtrace = arm_backtrace; | ||
24 | |||
25 | return ret; | ||
26 | } | ||
27 | |||
28 | void oprofile_arch_exit(void) | ||
29 | { | ||
30 | #ifdef CONFIG_CPU_XSCALE | ||
31 | op_arm_exit(); | ||
32 | #endif | ||
33 | } | ||