So why not have a few flags which tell the interrupt return path code
that it is supposed to process signals or bottom half handlers?
(Or maybe an inverted flag if that makes more sense).
So for a fast interrupt handler which can stand higher latencies:
static void interrupt(int irq, void *dev_id, struct pt_regs *regs)
{
fill_buffer();
if (plenty_of_space_left())
defer_bh = 1;
}
/Christer
-- If it's tourist season, why can't we shoot them?- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/