perf/x86: Convert the core to the hotplug state machine