Revert "sched: Remove get_online_cpus() usage"

This reverts commit 7be4206d221c8997779c2a580cf649c5c84306ac.