summaryrefslogtreecommitdiffstats
path: root/kernel/arch/blackfin/oprofile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/blackfin/oprofile')
-rw-r--r--kernel/arch/blackfin/oprofile/Makefile13
-rw-r--r--kernel/arch/blackfin/oprofile/bfin_oprofile.c18
2 files changed, 31 insertions, 0 deletions
diff --git a/kernel/arch/blackfin/oprofile/Makefile b/kernel/arch/blackfin/oprofile/Makefile
new file mode 100644
index 000000000..c70af3a01
--- /dev/null
+++ b/kernel/arch/blackfin/oprofile/Makefile
@@ -0,0 +1,13 @@
+#
+# arch/blackfin/oprofile/Makefile
+#
+
+obj-$(CONFIG_OPROFILE) += oprofile.o
+
+DRIVER_OBJS := $(addprefix ../../../drivers/oprofile/, \
+ oprof.o cpu_buffer.o buffer_sync.o \
+ event_buffer.o oprofile_files.o \
+ oprofilefs.o oprofile_stats.o \
+ timer_int.o )
+
+oprofile-y := $(DRIVER_OBJS) bfin_oprofile.o
diff --git a/kernel/arch/blackfin/oprofile/bfin_oprofile.c b/kernel/arch/blackfin/oprofile/bfin_oprofile.c
new file mode 100644
index 000000000..c3b9713b2
--- /dev/null
+++ b/kernel/arch/blackfin/oprofile/bfin_oprofile.c
@@ -0,0 +1,18 @@
+/*
+ * bfin_oprofile.c - Blackfin oprofile code
+ *
+ * Copyright 2004-2008 Analog Devices Inc.
+ * Licensed under the GPL-2 or later.
+ */
+
+#include <linux/oprofile.h>
+#include <linux/init.h>
+
+int __init oprofile_arch_init(struct oprofile_operations *ops)
+{
+ return -1;
+}
+
+void oprofile_arch_exit(void)
+{
+}