Loading
perf/x86/uncore: Correct the L3 PMU config for Hygon processors
hygon inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBCQ50 CVE: NA --------------------------- The hwc->config is set in the function amd_uncore_l3_event_init() and not use the return value of the function l3_thread_slice_mask() since commit e6e832e8 ("perf/x86/amd/uncore: Refactor uncore management"). So adjust the code for Hygon, otherwise it will not set the L3 PMU config correctly and cause #PF when using perf tool to monitor performance on Hygon platforms. Fixes: 26559114 ("perf/x86/uncore: Add L3 PMU support for Hygon family 18h model 6h") Signed-off-by:Wenhui Fan <fanwh@hygon.cn>