Isn't sched_task_exit called from asm code on some architectures?