Re: Who (and when) is calling the scheduler ?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 27 Aug 1998 03:26:54 +0100 (BST)


> "The interrupt routine proper simply updates the variables `jiffies' and marks
> the bottom half routine (see Section 7.2.4) of the timer interrupt as active.
^^^^^^^^^^^^^^^^^^^
> This is called by the system at a later point ..."

The bit I underlined is the important bit. The irq return path will run the bh
(or if bh's are running the bh returns will run the next bh). The bh runs
include scheduling and the bh -> user space return will return to the new task
on a switch

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html