/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
- /**
- * @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 = pmu_init(ops, &op_xscale_spec);
- #endif
- return ret;
- }
- void oprofile_arch_exit(void)
- {
- #ifdef CONFIG_CPU_XSCALE
- pmu_exit();
- #endif
- }