autosmp: improve the hotplug algorithm