diff options
| -rw-r--r-- | arch/x86/kernel/cpu/perf_event_intel_rapl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_intel_rapl.c b/arch/x86/kernel/cpu/perf_event_intel_rapl.c index 6e434f8e5fc8..c4bb8b8e5017 100644 --- a/arch/x86/kernel/cpu/perf_event_intel_rapl.c +++ b/arch/x86/kernel/cpu/perf_event_intel_rapl.c | |||
| @@ -142,7 +142,7 @@ static inline u64 rapl_scale(u64 v) | |||
| 142 | * or use ldexp(count, -32). | 142 | * or use ldexp(count, -32). |
| 143 | * Watts = Joules/Time delta | 143 | * Watts = Joules/Time delta |
| 144 | */ | 144 | */ |
| 145 | return v << (32 - __this_cpu_read(rapl_pmu->hw_unit)); | 145 | return v << (32 - __this_cpu_read(rapl_pmu)->hw_unit); |
| 146 | } | 146 | } |
| 147 | 147 | ||
| 148 | static u64 rapl_event_update(struct perf_event *event) | 148 | static u64 rapl_event_update(struct perf_event *event) |
