PageRenderTime 17ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/arch/arm/oprofile/init.c

https://bitbucket.org/evzijst/gittest
C | 31 lines | 18 code | 5 blank | 8 comment | 0 complexity | cfe946649e3002bcb0d2e90f70d9077c MD5 | raw file
 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
15int __init oprofile_arch_init(struct oprofile_operations *ops)
16{
17	int ret = -ENODEV;
18
19#ifdef CONFIG_CPU_XSCALE
20	ret = pmu_init(ops, &op_xscale_spec);
21#endif
22
23	return ret;
24}
25
26void oprofile_arch_exit(void)
27{
28#ifdef CONFIG_CPU_XSCALE
29	pmu_exit();
30#endif
31}