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

Commit be609f35 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[MIPS] Oprofile: fix on non-VSMP / non-SMTC SMP configurations.

parent a7aacdf9
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -32,15 +32,17 @@

#ifdef CONFIG_MIPS_MT_SMP
#define WHAT		(M_TC_EN_VPE | M_PERFCTL_VPEID(smp_processor_id()))
#define vpe_id()	smp_processor_id()
#else
#define WHAT		0
#define vpe_id()	smp_processor_id()
#endif

#define __define_perf_accessors(r, n, np)				\
									\
static inline unsigned int r_c0_ ## r ## n(void)			\
{									\
	unsigned int cpu = smp_processor_id();				\
	unsigned int cpu = vpe_id();					\
									\
	switch (cpu) {							\
	case 0:								\
@@ -55,7 +57,7 @@ static inline unsigned int r_c0_ ## r ## n(void) \
									\
static inline void w_c0_ ## r ## n(unsigned int value)			\
{									\
	unsigned int cpu = smp_processor_id();				\
	unsigned int cpu = vpe_id();					\
									\
	switch (cpu) {							\
	case 0:								\