On 02/15/11 10:38, Frank Rowand wrote: > try_to_wake_up() is in the scheduler code (kernel/sched.c), but it is > not "the scheduler". If the task is not already running, > try_to_wake_up() will put the task on the run queue and set it's state > to TASK_RUNNING. If the priority of the newly woken thread was higher > than the current thread, then the newly woken thread would preempt > current. If a preemption occurred, then TIF_NEED_RESCHED is set. Oops, I slipped into using "thread" instead of "task". Just substitue "task" for each occurance of "thread" in that paragraph. > The actual "schedule" will occur on the exit path of the interrupt > only if TIF_NEED_RESCHED is set (see the call of preempt_schedule_irq()). -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html