projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd2281b
)
perf/x86/msr: Fix the MSR driver build
author
Ingo Molnar
<
[email protected]
>
Fri, 21 Aug 2015 06:14:46 +0000
(08:14 +0200)
committer
Ingo 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
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/perf_event_msr.c
b/arch/x86/kernel/cpu/perf_event_msr.c
index b0dd2e8a6d12f23b5f158c0cddf7e166a1a46c22..086b12eae79493329c8792538ea8c6f179aee4fb 100644
(file)
--- a/
arch/x86/kernel/cpu/perf_event_msr.c
+++ b/
arch/x86/kernel/cpu/perf_event_msr.c
@@
-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;
}