sched: Remove get_online_cpus() usage

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>