Here's my question:
I noticed that sleep_on() disables interrupts before it calls
schedule(). This puzzles me because my understanding was that
schedule() must not be called with interrupts disabled (if there are
no more threads to run then the system would deadlock). Does
schedule() re-enable interrupts (it looks like it does)? If so, why
is it bad to call sleeping functions with interrupts disabled?
Sorry if this is a silly question...
-Tachio
-
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/