[PATCH openEuler-1.0-LTS v4 176/292] Intel: perf/x86/intel: Factor out common code of PMI handler