Re: Can I use yield in this way

From: Alan Cox
Date: Thu Jun 26 2008 - 09:42:52 EST


> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/