]> Git Repo - linux.git/commitdiff
perf/x86/msr: Fix the MSR driver build
authorIngo Molnar <[email protected]>
Fri, 21 Aug 2015 06:14:46 +0000 (08:14 +0200)
committerIngo Molnar <[email protected]>
Fri, 21 Aug 2015 06:17:01 +0000 (08:17 +0200)
The new MSR PMU driver made use of rdtsc() which does not exist (yet) in
this tree:

  arch/x86/kernel/cpu/perf_event_msr.c:91:3: error: implicit declaration of function 'rdtsc'

Use the old rdtscll() primitive for now.

Reported-by: kbuild test robot <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/cpu/perf_event_msr.c

index b0dd2e8a6d12f23b5f158c0cddf7e166a1a46c22..086b12eae79493329c8792538ea8c6f179aee4fb 100644 (file)
@@ -145,7 +145,7 @@ static inline u64 msr_read_counter(struct perf_event *event)
        if (event->hw.event_base)
                rdmsrl(event->hw.event_base, now);
        else
-               now = rdtsc();
+               rdtscll(now);
 
        return now;
 }
This page took 0.063146 seconds and 4 git commands to generate.