[PATCH openEuler-5.10 v2 248/548] powerpc/perf: move perf irq/nmi handling details into traps.c