diff options
| author | Mark Mason <mason@broadcom.com> | 2006-01-17 15:06:32 -0500 |
|---|---|---|
| committer | Ralf Baechle <ralf@linux-mips.org> | 2006-02-07 08:30:22 -0500 |
| commit | c03bc121212ecb36120b118a94c1b91a2e07b7b2 (patch) | |
| tree | f75749e5c04e01dbc5e7e56e6c5a4d36f718a6be /arch/mips/oprofile | |
| parent | 4c91cc57bc9cfd337804d70bc9bff6a012aa8b83 (diff) | |
[MIPS] SB1: Add oprofile support.
Signed-off-by: Mark Mason <mason@broadcom.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/oprofile')
| -rw-r--r-- | arch/mips/oprofile/Makefile | 1 | ||||
| -rw-r--r-- | arch/mips/oprofile/common.c | 2 | ||||
| -rw-r--r-- | arch/mips/oprofile/op_model_mipsxx.c | 5 |
3 files changed, 8 insertions, 0 deletions
diff --git a/arch/mips/oprofile/Makefile b/arch/mips/oprofile/Makefile index 354261d37d62..0a50aad5bbe4 100644 --- a/arch/mips/oprofile/Makefile +++ b/arch/mips/oprofile/Makefile | |||
| @@ -12,4 +12,5 @@ oprofile-y := $(DRIVER_OBJS) common.o | |||
| 12 | 12 | ||
| 13 | oprofile-$(CONFIG_CPU_MIPS32) += op_model_mipsxx.o | 13 | oprofile-$(CONFIG_CPU_MIPS32) += op_model_mipsxx.o |
| 14 | oprofile-$(CONFIG_CPU_MIPS64) += op_model_mipsxx.o | 14 | oprofile-$(CONFIG_CPU_MIPS64) += op_model_mipsxx.o |
| 15 | oprofile-$(CONFIG_CPU_SB1) += op_model_mipsxx.o | ||
| 15 | oprofile-$(CONFIG_CPU_RM9000) += op_model_rm9000.o | 16 | oprofile-$(CONFIG_CPU_RM9000) += op_model_rm9000.o |
diff --git a/arch/mips/oprofile/common.c b/arch/mips/oprofile/common.c index 53f9889b30ed..65de5e3d5a7b 100644 --- a/arch/mips/oprofile/common.c +++ b/arch/mips/oprofile/common.c | |||
| @@ -79,6 +79,8 @@ int __init oprofile_arch_init(struct oprofile_operations *ops) | |||
| 79 | case CPU_20KC: | 79 | case CPU_20KC: |
| 80 | case CPU_24K: | 80 | case CPU_24K: |
| 81 | case CPU_25KF: | 81 | case CPU_25KF: |
| 82 | case CPU_SB1: | ||
| 83 | case CPU_SB1A: | ||
| 82 | lmodel = &op_model_mipsxx; | 84 | lmodel = &op_model_mipsxx; |
| 83 | break; | 85 | break; |
| 84 | 86 | ||
diff --git a/arch/mips/oprofile/op_model_mipsxx.c b/arch/mips/oprofile/op_model_mipsxx.c index 1d1eee407faf..dd6d189dccf8 100644 --- a/arch/mips/oprofile/op_model_mipsxx.c +++ b/arch/mips/oprofile/op_model_mipsxx.c | |||
| @@ -205,6 +205,11 @@ static int __init mipsxx_init(void) | |||
| 205 | op_model_mipsxx.cpu_type = "mips/5K"; | 205 | op_model_mipsxx.cpu_type = "mips/5K"; |
| 206 | break; | 206 | break; |
| 207 | 207 | ||
| 208 | case CPU_SB1: | ||
| 209 | case CPU_SB1A: | ||
| 210 | op_model_mipsxx.cpu_type = "mips/sb1"; | ||
| 211 | break; | ||
| 212 | |||
| 208 | default: | 213 | default: |
| 209 | printk(KERN_ERR "Profiling unsupported for this CPU\n"); | 214 | printk(KERN_ERR "Profiling unsupported for this CPU\n"); |
| 210 | 215 | ||
