projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c550091
)
Revert "x86: oprofile/op_model_amd.c set return values for op_amd_handle_ibs()"
author
Robert Richter
<robert.richter@amd.com>
Tue, 4 Aug 2009 13:52:38 +0000
(15:52 +0200)
committer
Robert Richter
<robert.richter@amd.com>
Tue, 4 Aug 2009 13:53:36 +0000
(15:53 +0200)
This reverts commit
21e70878215f620fe99ea7d7c74bc641aeec932f
.
Instead Andrew's patch will be applied he posted at the same time.
Signed-off-by: Robert Richter <robert.richter@amd.com>
arch/x86/oprofile/op_model_amd.c
patch
|
blob
|
history
diff --git
a/arch/x86/oprofile/op_model_amd.c
b/arch/x86/oprofile/op_model_amd.c
index 827beecb67a4c6e6da0cda97c28605b19dee227f..37d19c768d5fab60713b4da9bc423e1778576207 100644
(file)
--- a/
arch/x86/oprofile/op_model_amd.c
+++ b/
arch/x86/oprofile/op_model_amd.c
@@
-195,7
+195,7
@@
op_amd_handle_ibs(struct pt_regs * const regs,
struct op_entry entry;
if (!has_ibs)
- return
0
;
+ return
1
;
if (ibs_config.fetch_enabled) {
rdmsrl(MSR_AMD64_IBSFETCHCTL, ctl);
@@
-277,10
+277,7
@@
static void op_amd_stop_ibs(void)
#else
static inline int op_amd_handle_ibs(struct pt_regs * const regs,
- struct op_msrs const * const msrs)
-{
- return 0;
-}
+ struct op_msrs const * const msrs) { }
static inline void op_amd_start_ibs(void) { }
static inline void op_amd_stop_ibs(void) { }