diff options
author | James Hogan <james.hogan@imgtec.com> | 2014-01-22 11:19:41 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-03-26 18:09:12 -0400 |
commit | 8c7f6ba3427b2a70aac0016f959b6977c395e8cb (patch) | |
tree | 90d3eb469b4becfcb3ac81a8a61b2bacb62f32bc | |
parent | d83b0e82ad055920fb7f05f85b9466d97b7182db (diff) |
MIPS: OProfile: Add CPU_P5600 cases
Add a CPU_P5600 cpu type case in oprofile_arch_init() to use the MIPS
model, and in mipsxx_init() to set the cpu_type string to "mips/P5600".
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Reviewed-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Robert Richter <rric@kernel.org>
Cc: oprofile-list@lists.sf.net
Patchwork: https://patchwork.linux-mips.org/patch/6410/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/oprofile/common.c | 1 | ||||
-rw-r--r-- | arch/mips/oprofile/op_model_mipsxx.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/oprofile/common.c b/arch/mips/oprofile/common.c index 710e7f010533..e4ca70bf0573 100644 --- a/arch/mips/oprofile/common.c +++ b/arch/mips/oprofile/common.c | |||
@@ -89,6 +89,7 @@ int __init oprofile_arch_init(struct oprofile_operations *ops) | |||
89 | case CPU_1074K: | 89 | case CPU_1074K: |
90 | case CPU_INTERAPTIV: | 90 | case CPU_INTERAPTIV: |
91 | case CPU_PROAPTIV: | 91 | case CPU_PROAPTIV: |
92 | case CPU_P5600: | ||
92 | case CPU_LOONGSON1: | 93 | case CPU_LOONGSON1: |
93 | case CPU_SB1: | 94 | case CPU_SB1: |
94 | case CPU_SB1A: | 95 | case CPU_SB1A: |
diff --git a/arch/mips/oprofile/op_model_mipsxx.c b/arch/mips/oprofile/op_model_mipsxx.c index 3a040ebb8378..9797493546e4 100644 --- a/arch/mips/oprofile/op_model_mipsxx.c +++ b/arch/mips/oprofile/op_model_mipsxx.c | |||
@@ -385,6 +385,10 @@ static int __init mipsxx_init(void) | |||
385 | op_model_mipsxx_ops.cpu_type = "mips/proAptiv"; | 385 | op_model_mipsxx_ops.cpu_type = "mips/proAptiv"; |
386 | break; | 386 | break; |
387 | 387 | ||
388 | case CPU_P5600: | ||
389 | op_model_mipsxx_ops.cpu_type = "mips/P5600"; | ||
390 | break; | ||
391 | |||
388 | case CPU_5KC: | 392 | case CPU_5KC: |
389 | op_model_mipsxx_ops.cpu_type = "mips/5K"; | 393 | op_model_mipsxx_ops.cpu_type = "mips/5K"; |
390 | break; | 394 | break; |