···3131#define M_COUNTER_OVERFLOW (1UL << 31)32323333#ifdef CONFIG_MIPS_MT_SMP3434-#define WHAT (M_TC_EN_VPE | M_PERFCTL_VPEID(smp_processor_id()))3434+#define WHAT (M_TC_EN_VPE | M_PERFCTL_VPEID(smp_processor_id()))3535+#define vpe_id() smp_processor_id()3536#else3636-#define WHAT 03737+#define WHAT 03838+#define vpe_id() smp_processor_id()3739#endif38403941#define __define_perf_accessors(r, n, np) \4042 \4143static inline unsigned int r_c0_ ## r ## n(void) \4244{ \4343- unsigned int cpu = smp_processor_id(); \4545+ unsigned int cpu = vpe_id(); \4446 \4547 switch (cpu) { \4648 case 0: \···5755 \5856static inline void w_c0_ ## r ## n(unsigned int value) \5957{ \6060- unsigned int cpu = smp_processor_id(); \5858+ unsigned int cpu = vpe_id(); \6159 \6260 switch (cpu) { \6361 case 0: \