Re: calling schedule() from interupt context

Robert Love (rml@tech9.net)
24 Nov 2002 17:41:43 -0500


On Sun, 2002-11-24 at 16:42, Rusty Russell wrote:

> > Oh we can't kill module references from interrupts?
>
> Err, no, that would be insane. get_cpu() & put_cpu() should work
> perfectly fine inside interrupts, no?

Yes, they do.

Since the preempt_count is bumped on entry to the interrupt handler, it
is always at least one, and thus put_cpu() will never call schedule.

Robert Love

-
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/