perf_events, x86: Clean up hw_perf_*_all() implementation