[PATCH 5.10 142/143] perf/x86/amd: fix potential integer overflow on shift of a int