lkml.org 
[lkml]   [2002]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Q: Scheduler and need_resched
Anders Fugmann wrote:
> Hi.
>
> I got a small question of what happens codevice when the quantum of a
> task is expired (counter == 0 -> need_resched == 1). Of cource schedule
> is invoked somehow, but from where? How is the "flow". I see from where
> do_timer is called, and that it schedules a BH, but then I'm stuck.
>
> Any pointer appriciated.
> Anders Fugmann

Solved.
By the help of the kernel newbies pages, I was pointed to the page
http://kernelnewbies.org/wiki/moin.cgi/Karthick, which pointed at
the label '_ret_with_reschedule' in entry.S.

This piece of assembler is called after each interrupt, and tests the
need_resched flag to see is scheduling is nessesary.

Anyway, thanks for your time.
Anders Fugmann


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:29    [W:2.166 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site