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:
3ebe3bd
)
perf/x86/intel: Fix rdlbr_to() MSR reading typo
author
Peter Zijlstra
<
[email protected]
>
Thu, 30 Jun 2016 09:49:08 +0000
(11:49 +0200)
committer
Ingo Molnar
<
[email protected]
>
Thu, 7 Jul 2016 07:03:28 +0000
(09:03 +0200)
It helps to actually read the right MSR..
Signed-off-by: Peter Zijlstra (Intel) <
[email protected]
>
Cc: Alexander Shishkin <
[email protected]
>
Cc: Arnaldo Carvalho de Melo <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: Linus Torvalds <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Stephane Eranian <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Cc: Vince Weaver <
[email protected]
>
Cc:
[email protected]
Fixes: d4cf1949f968 ("perf/x86/intel: Add {rd,wr}lbr_{to,from} wrappers")
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/events/intel/lbr.c
patch
|
blob
|
history
diff --git
a/arch/x86/events/intel/lbr.c
b/arch/x86/events/intel/lbr.c
index cc4555a9e8760ea898ba737677a0099dabcd09c2..707d358e0dff59ed5871bc49ceda0462c4f818be 100644
(file)
--- a/
arch/x86/events/intel/lbr.c
+++ b/
arch/x86/events/intel/lbr.c
@@
-323,7
+323,7
@@
static inline u64 rdlbr_to(unsigned int idx)
{
u64 val;
- rdmsrl(x86_pmu.lbr_
from
+ idx, val);
+ rdmsrl(x86_pmu.lbr_
to
+ idx, val);
return val;
}