sched: Fix undeclared function