sched: Clean up the task_hot() function