Can Linux kernel do context switch when the interrupt is disabled?

Dave Hylands dhylands at gmail.com
Mon Oct 21 11:57:33 EDT 2013


Hi Grissiom,


On Mon, Oct 21, 2013 at 7:39 AM, Grissiom <chaos.proton at gmail.com> wrote:
>
> Hi all,
>
> Can Linux kernel do context switching when the interrupt is disabled? I
am learning the code in ARM platform but I think this question might be
arch-independent.

You're not allowed to perform any blocking operations while interupts are
disabled. Anything that context switches would be considered a blocking
operation.

So no.

--
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131021/4785fd59/attachment.html 


More information about the Kernelnewbies mailing list