[PATCH v3 3/7] MIPS: perf: Use correct VPE ID when setting up VPE tracing

2018-04-20 Thread Matt Redfearn
There are a couple of FIXME's in the perf code which state that cpu_data[event->cpu].vpe_id reports 0 for both CPUs. This is no longer the case, since the vpe_id is used extensively by SMP CPS. VPE local counting gets around this by using smp_processor_id() instead. As it happens this does work

[PATCH v3 3/7] MIPS: perf: Use correct VPE ID when setting up VPE tracing

2018-04-20 Thread Matt Redfearn
There are a couple of FIXME's in the perf code which state that cpu_data[event->cpu].vpe_id reports 0 for both CPUs. This is no longer the case, since the vpe_id is used extensively by SMP CPS. VPE local counting gets around this by using smp_processor_id() instead. As it happens this does work