sched: fix cpu hotplug, cleanup