Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2065988e authored by Ralf Baechle's avatar Ralf Baechle Committed by
Browse files

MIPS: Oprofile: Add 5K, 20K and 25K support.

parent 9efeae9a
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -75,7 +75,10 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
	int res;
	int res;


	switch (current_cpu_data.cputype) {
	switch (current_cpu_data.cputype) {
	case CPU_5KC:
	case CPU_20KC:
	case CPU_24K:
	case CPU_24K:
	case CPU_25KF:
		lmodel = &op_model_mipsxx;
		lmodel = &op_model_mipsxx;
		break;
		break;


+12 −0
Original line number Original line Diff line number Diff line
@@ -189,10 +189,22 @@ static int __init mipsxx_init(void)


	op_model_mipsxx.num_counters = counters;
	op_model_mipsxx.num_counters = counters;
	switch (current_cpu_data.cputype) {
	switch (current_cpu_data.cputype) {
	case CPU_20KC:
		op_model_mipsxx.cpu_type = "mips/20K";
		break;

	case CPU_24K:
	case CPU_24K:
		op_model_mipsxx.cpu_type = "mips/24K";
		op_model_mipsxx.cpu_type = "mips/24K";
		break;
		break;


	case CPU_25KF:
		op_model_mipsxx.cpu_type = "mips/25K";
		break;

	case CPU_5KC:
		op_model_mipsxx.cpu_type = "mips/5K";
		break;

	default:
	default:
		printk(KERN_ERR "Profiling unsupported for this CPU\n");
		printk(KERN_ERR "Profiling unsupported for this CPU\n");