-Original Message-
From: Henrik Austad [mailto:hen...@austad.us]
Sent: Tue 2/10/2009 12:18 AM
To: kernelnewbies@nl.linux.org
Cc: Himanshu Chauhan; Mulyadi Santosa; Sudheer Divakaran (WT01 - Product
Engineering Services)
Subject: Re: query regarding scheduling
On Monday 09 February 2009
On Monday 09 February 2009 16:56:40 Himanshu Chauhan wrote:
> On Mon, 2009-02-09 at 21:16 +0700, Mulyadi Santosa wrote:
> > Hi...
> >
> > On Mon, Feb 9, 2009 at 2:57 PM, wrote:
> > > Hi All,
> > > Please look at the following code from the article Sleeping in the
> > > Kernel
> > >
> > > http://w
On Mon, 2009-02-09 at 21:16 +0700, Mulyadi Santosa wrote:
> Hi...
>
> On Mon, Feb 9, 2009 at 2:57 PM, wrote:
> > Hi All,
> > Please look at the following code from the article Sleeping in the Kernel
> >
> > http://www.linuxjournal.com/node/8144/print
> >
> > 1 set_current_state(TASK_INTERRUPTIB
Hi...
On Mon, Feb 9, 2009 at 2:57 PM, wrote:
> Hi All,
> Please look at the following code from the article Sleeping in the Kernel
>
> http://www.linuxjournal.com/node/8144/print
>
> 1 set_current_state(TASK_INTERRUPTIBLE);
> 2 spin_lock(&list_lock);
> 3 if(list_empty(&list_head)) {
> 4
Hi All,
Please look at the following code from the article Sleeping in the Kernel
http://www.linuxjournal.com/node/8144/print
1 set_current_state(TASK_INTERRUPTIBLE);
2 spin_lock(&list_lock);
3 if(list_empty(&list_head)) {
4 spin_unlock(&list_lock);
5 schedule();
6 spi