Skip to content

Commit

Permalink
MIPS: OProfile: Add CPU_P5600 cases
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
James Hogan authored and Ralf Baechle committed Mar 26, 2014
1 parent d83b0e8 commit 8c7f6ba
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/mips/oprofile/common.c
Original file line number Diff line number Diff line change
@@ -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:
4 changes: 4 additions & 0 deletions arch/mips/oprofile/op_model_mipsxx.c
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 8c7f6ba

Please sign in to comment.