diff options
author | David Howells <dhowells@redhat.com> | 2008-02-08 07:19:31 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-08 12:22:30 -0500 |
commit | b920de1b77b72ca9432ac3f97edb26541e65e5dd (patch) | |
tree | 40fa9be1470e929c47927dea7eddf184c0204229 /arch/mn10300/oprofile | |
parent | ef3d534754f31fed9c3b976fee1ece1b3bc38282 (diff) |
mn10300: add the MN10300/AM33 architecture to the kernel
Add architecture support for the MN10300/AM33 CPUs produced by MEI to the
kernel.
This patch also adds board support for the ASB2303 with the ASB2308 daughter
board, and the ASB2305. The only processor supported is the MN103E010, which
is an AM33v2 core plus on-chip devices.
[akpm@linux-foundation.org: nuke cvs control strings]
Signed-off-by: Masakazu Urade <urade.masakazu@jp.panasonic.com>
Signed-off-by: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mn10300/oprofile')
-rw-r--r-- | arch/mn10300/oprofile/Kconfig | 23 | ||||
-rw-r--r-- | arch/mn10300/oprofile/Makefile | 13 | ||||
-rw-r--r-- | arch/mn10300/oprofile/op_model_null.c | 22 |
3 files changed, 58 insertions, 0 deletions
diff --git a/arch/mn10300/oprofile/Kconfig b/arch/mn10300/oprofile/Kconfig new file mode 100644 index 000000000000..19d37730b664 --- /dev/null +++ b/arch/mn10300/oprofile/Kconfig | |||
@@ -0,0 +1,23 @@ | |||
1 | |||
2 | menu "Profiling support" | ||
3 | depends on EXPERIMENTAL | ||
4 | |||
5 | config PROFILING | ||
6 | bool "Profiling support (EXPERIMENTAL)" | ||
7 | help | ||
8 | Say Y here to enable the extended profiling support mechanisms used | ||
9 | by profilers such as OProfile. | ||
10 | |||
11 | |||
12 | config OPROFILE | ||
13 | tristate "OProfile system profiling (EXPERIMENTAL)" | ||
14 | depends on PROFILING | ||
15 | help | ||
16 | OProfile is a profiling system capable of profiling the | ||
17 | whole system, include the kernel, kernel modules, libraries, | ||
18 | and applications. | ||
19 | |||
20 | If unsure, say N. | ||
21 | |||
22 | endmenu | ||
23 | |||
diff --git a/arch/mn10300/oprofile/Makefile b/arch/mn10300/oprofile/Makefile new file mode 100644 index 000000000000..918dbe60ebb6 --- /dev/null +++ b/arch/mn10300/oprofile/Makefile | |||
@@ -0,0 +1,13 @@ | |||
1 | # | ||
2 | # Makefile for the MN10300-specific profiling code | ||
3 | # | ||
4 | obj-$(CONFIG_OPROFILE) += oprofile.o | ||
5 | |||
6 | DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \ | ||
7 | oprof.o cpu_buffer.o buffer_sync.o \ | ||
8 | event_buffer.o oprofile_files.o \ | ||
9 | oprofilefs.o oprofile_stats.o \ | ||
10 | timer_int.o ) | ||
11 | |||
12 | oprofile-y := $(DRIVER_OBJS) op_model_null.o | ||
13 | |||
diff --git a/arch/mn10300/oprofile/op_model_null.c b/arch/mn10300/oprofile/op_model_null.c new file mode 100644 index 000000000000..cd4ab374bc4f --- /dev/null +++ b/arch/mn10300/oprofile/op_model_null.c | |||
@@ -0,0 +1,22 @@ | |||
1 | /* Null profiling driver | ||
2 | * | ||
3 | * Copyright (C) 2003 Paul Mundt | ||
4 | * | ||
5 | * This file is subject to the terms and conditions of the GNU General Public | ||
6 | * Licence. See the file "COPYING" in the main directory of this archive | ||
7 | * for more details. | ||
8 | */ | ||
9 | #include <linux/kernel.h> | ||
10 | #include <linux/oprofile.h> | ||
11 | #include <linux/init.h> | ||
12 | #include <linux/errno.h> | ||
13 | |||
14 | int __init oprofile_arch_init(struct oprofile_operations *ops) | ||
15 | { | ||
16 | return -ENODEV; | ||
17 | } | ||
18 | |||
19 | void oprofile_arch_exit(void) | ||
20 | { | ||
21 | } | ||
22 | |||