[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20080626142454.5eddbc8b@lxorguk.ukuu.org.uk>
Date: Thu, 26 Jun 2008 14:24:54 +0100
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: 夏亮 <xiaiaxaxi@...u.edu.cn>
Cc: linux-kernel@...r.kernel.org
Subject: Re: Can I use yield in this way
> Can yield() be used as above. After I compile the kernel and
> run again. Kernel is not working just as it meets deadlock. And if I
> comment yield(), it runs ok. Could anyone help me?Thanks!
You cannot schedule within an interrupt (the interrupt handler cannot
yield) - you can force a reschedule however, and in theory you could
change the processor masks and trigger a reschedule to do what you want
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists