summaryrefslogtreecommitdiffstats
path: root/arch/arm/oprofile/init.c
blob: ccd8c54934a29b6eacd918db3d6fdfff3f6769e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
 * @file init.c
 *
 * @remark Copyright 2004 Oprofile Authors
 * @remark Read the file COPYING
 *
 * @author Zwane Mwaikambo
 */

#include <linux/oprofile.h>
#include <linux/init.h>
#include <linux/errno.h>
#include "op_arm_model.h"

int __init oprofile_arch_init(struct oprofile_operations *ops)
{
	int ret = -ENODEV;

#ifdef CONFIG_CPU_XSCALE
	ret = op_arm_init(ops, &op_xscale_spec);
#endif

	ops->backtrace = arm_backtrace;

	return ret;
}

void oprofile_arch_exit(void)
{
#ifdef CONFIG_CPU_XSCALE
	op_arm_exit();
#endif
}