1da177e4c3
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
32 lines
491 B
C
32 lines
491 B
C
/**
|
|
* @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
|
|
}
|