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

Commit 9efeae9a authored by Ralf Baechle's avatar Ralf Baechle Committed by
Browse files

MIPS: Oprofile: Print error message if the CPU happen to have no counters.

parent ba339c03
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -180,8 +180,10 @@ static int __init mipsxx_init(void)
	int counters;
	int counters;


	counters = n_counters();
	counters = n_counters();
	if (counters == 0)
	if (counters == 0) {
		printk(KERN_ERR "Oprofile: CPU has no performance counters\n");
		return -ENODEV;
		return -ENODEV;
	}


	reset_counters(counters);
	reset_counters(counters);