aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze/oprofile/microblaze_oprofile.c
diff options
context:
space:
mode:
authorJohn Williams <john.williams@petalogix.com>2009-11-24 20:27:54 +1000
committerMichal Simek <monstr@monstr.eu>2009-12-14 08:45:07 +0100
commit3540ce8238c2d29a2a20a1876575c0064d0da23e (patch)
tree7fc4eee9652b894fdb454eb2572d747da5944b85 /arch/microblaze/oprofile/microblaze_oprofile.c
parentmicroblaze: Fix level interrupt ACKing (diff)
downloadlinux-dev-3540ce8238c2d29a2a20a1876575c0064d0da23e.tar.xz
linux-dev-3540ce8238c2d29a2a20a1876575c0064d0da23e.zip
microblaze: Core oprofile configs and hooks
Microblaze uses timer interrupt mode. Microblaze don't have any performance counter that's why we use just simple implementation. Signed-off-by: John Williams <john.williams@petalogix.com> Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to '')
-rw-r--r--arch/microblaze/oprofile/microblaze_oprofile.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/microblaze/oprofile/microblaze_oprofile.c b/arch/microblaze/oprofile/microblaze_oprofile.c
new file mode 100644
index 000000000000..def17e59888e
--- /dev/null
+++ b/arch/microblaze/oprofile/microblaze_oprofile.c
@@ -0,0 +1,22 @@
+/*
+ * Microblaze oprofile code
+ *
+ * Copyright (C) 2009 Michal Simek <monstr@monstr.eu>
+ * Copyright (C) 2009 PetaLogix
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ */
+
+#include <linux/oprofile.h>
+#include <linux/init.h>
+
+int __init oprofile_arch_init(struct oprofile_operations *ops)
+{
+ return -1;
+}
+
+void oprofile_arch_exit(void)
+{
+}