Linux-2.6.12-rc2
[linux-2.6/kvm.git] / arch / arm / oprofile / init.c
blobcce3d3015eb7999d79143d72eaa061ff98337e29
1 /**
2 * @file init.c
4 * @remark Copyright 2004 Oprofile Authors
5 * @remark Read the file COPYING
7 * @author Zwane Mwaikambo
8 */
10 #include <linux/oprofile.h>
11 #include <linux/init.h>
12 #include <linux/errno.h>
13 #include "op_arm_model.h"
15 int __init oprofile_arch_init(struct oprofile_operations *ops)
17 int ret = -ENODEV;
19 #ifdef CONFIG_CPU_XSCALE
20 ret = pmu_init(ops, &op_xscale_spec);
21 #endif
23 return ret;
26 void oprofile_arch_exit(void)
28 #ifdef CONFIG_CPU_XSCALE
29 pmu_exit();
30 #endif