Revert "sched: Remove get_online_cpus() usage"

This reverts commit e60cf6f437afb883d2198222aca45b4a339e3fcf.