perf/x86/amd/power: Convert the hotplug notifier to state machine