Message ID | 20201125213720.15692-2-kan.liang@linux.intel.com |
---|---|
State | Accepted |
Commit | f8129cd958b395575e5543ce25a8434874b04d3a |
Headers | show |
Series | [1/2] perf/x86/intel: Fix rtm_abort_event encoding on Ice Lake | expand |
diff --git a/arch/x86/events/intel/lbr.c b/arch/x86/events/intel/lbr.c index 1aadb253d296..21890dacfcfe 100644 --- a/arch/x86/events/intel/lbr.c +++ b/arch/x86/events/intel/lbr.c @@ -919,7 +919,7 @@ static __always_inline bool get_lbr_predicted(u64 info) return !(info & LBR_INFO_MISPRED); } -static __always_inline bool get_lbr_cycles(u64 info) +static __always_inline u16 get_lbr_cycles(u64 info) { if (static_cpu_has(X86_FEATURE_ARCH_LBR) && !(x86_pmu.lbr_timed_lbr && info & LBR_INFO_CYC_CNT_VALID))