diff options
Diffstat (limited to 'arch/mips/kernel/perf_event_mipsxx.c')
-rw-r--r-- | arch/mips/kernel/perf_event_mipsxx.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/mips/kernel/perf_event_mipsxx.c b/arch/mips/kernel/perf_event_mipsxx.c index 4ee111142aad..19253d7ca730 100644 --- a/arch/mips/kernel/perf_event_mipsxx.c +++ b/arch/mips/kernel/perf_event_mipsxx.c | |||
@@ -139,13 +139,8 @@ static DEFINE_RWLOCK(pmuint_rwlock); | |||
139 | * FIXME: For VSMP, vpe_id() is redefined for Perf-events, because | 139 | * FIXME: For VSMP, vpe_id() is redefined for Perf-events, because |
140 | * cpu_data[cpuid].vpe_id reports 0 for _both_ CPUs. | 140 | * cpu_data[cpuid].vpe_id reports 0 for _both_ CPUs. |
141 | */ | 141 | */ |
142 | #if defined(CONFIG_HW_PERF_EVENTS) | ||
143 | #define vpe_id() (cpu_has_mipsmt_pertccounters ? \ | 142 | #define vpe_id() (cpu_has_mipsmt_pertccounters ? \ |
144 | 0 : smp_processor_id()) | 143 | 0 : smp_processor_id()) |
145 | #else | ||
146 | #define vpe_id() (cpu_has_mipsmt_pertccounters ? \ | ||
147 | 0 : cpu_data[smp_processor_id()].vpe_id) | ||
148 | #endif | ||
149 | 144 | ||
150 | /* Copied from op_model_mipsxx.c */ | 145 | /* Copied from op_model_mipsxx.c */ |
151 | static unsigned int vpe_shift(void) | 146 | static unsigned int vpe_shift(void) |