The timer interrupt does the trick.. whenever a timer interrupt occurs the count variable of the process that is running gets decremented.. and when it reaches 0, it sets the need_reschedule. Before leaving the interrupt it checks the need_reschedule flag and if it is set it will call the schedule function. HTH, Raghu On Tue, 15 Jul 2003, don wrote: > Hi all, > > Can anyone tell me which kernel thread/function call > schedule() all the time to schedule the process/task > out if the task voluntarily doesnt leave the > processor. > > Suppose my driver goes to deep sleep without calling > schedule() which part of kernel will take care to > schedule the other pending tasks. > > Thanking in Advance. > > Don > > __________________________________ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/