MIPS: Oprofile: Add 5K, 20K and 25K support. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Ralf Baechle and committed by
2065988e 9efeae9a

+15
+3
arch/mips/oprofile/common.c
··· 75 int res; 76 77 switch (current_cpu_data.cputype) { 78 case CPU_24K: 79 lmodel = &op_model_mipsxx; 80 break; 81
··· 75 int res; 76 77 switch (current_cpu_data.cputype) { 78 + case CPU_5KC: 79 + case CPU_20KC: 80 case CPU_24K: 81 + case CPU_25KF: 82 lmodel = &op_model_mipsxx; 83 break; 84
+12
arch/mips/oprofile/op_model_mipsxx.c
··· 189 190 op_model_mipsxx.num_counters = counters; 191 switch (current_cpu_data.cputype) { 192 case CPU_24K: 193 op_model_mipsxx.cpu_type = "mips/24K"; 194 break; 195 196 default:
··· 189 190 op_model_mipsxx.num_counters = counters; 191 switch (current_cpu_data.cputype) { 192 + case CPU_20KC: 193 + op_model_mipsxx.cpu_type = "mips/20K"; 194 + break; 195 + 196 case CPU_24K: 197 op_model_mipsxx.cpu_type = "mips/24K"; 198 + break; 199 + 200 + case CPU_25KF: 201 + op_model_mipsxx.cpu_type = "mips/25K"; 202 + break; 203 + 204 + case CPU_5KC: 205 + op_model_mipsxx.cpu_type = "mips/5K"; 206 break; 207 208 default: