MIPS: OProfile: Add CPU_P5600 cases
authorJames Hogan <james.hogan@imgtec.com>
Wed, 22 Jan 2014 16:19:41 +0000 (16:19 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 26 Mar 2014 22:09:12 +0000 (23:09 +0100)
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>
arch/mips/oprofile/common.c
arch/mips/oprofile/op_model_mipsxx.c

index 710e7f0105338a719b511a3cf23ac1c44e2a7eed..e4ca70bf0573a67ca291b7c79e1e55311b8b5cc9 100644 (file)
@@ -89,6 +89,7 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
        case CPU_1074K:
        case CPU_INTERAPTIV:
        case CPU_PROAPTIV:
+       case CPU_P5600:
        case CPU_LOONGSON1:
        case CPU_SB1:
        case CPU_SB1A:
index 3a040ebb8378f1f70cb4a3f42510fcf6e56d6fe5..9797493546e474ce285710667d64431690f640ce 100644 (file)
@@ -385,6 +385,10 @@ static int __init mipsxx_init(void)
                op_model_mipsxx_ops.cpu_type = "mips/proAptiv";
                break;
 
+       case CPU_P5600:
+               op_model_mipsxx_ops.cpu_type = "mips/P5600";
+               break;
+
        case CPU_5KC:
                op_model_mipsxx_ops.cpu_type = "mips/5K";
                break;