perf/x86/lbr: Simplify the exposure check for the LBR_INFO registers
authorLike Xu <like.xu@linux.intel.com>
Fri, 25 Nov 2022 04:05:50 +0000 (23:05 -0500)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 27 Dec 2022 11:52:07 +0000 (12:52 +0100)
commit03c4c7f88709fac0e20b6a48357c73d6fc50e544
tree83281d30af0bb485e0651bf92b4644b63bbe22b1
parent1b929c02afd37871d5afb9d498426f83432e71c2
perf/x86/lbr: Simplify the exposure check for the LBR_INFO registers

The x86_pmu.lbr_info is 0 unless explicitly initialized, so there's
no point checking x86_pmu.intel_cap.lbr_format.

Signed-off-by: Like Xu <like.xu@linux.intel.com>
Signed-off-by: Yang Weijiang <weijiang.yang@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Link: https://lkml.kernel.org/r/20221125040604.5051-2-weijiang.yang@intel.com
arch/x86/events/intel/lbr.c