Messages in this thread | | | Date | Thu, 6 May 2004 22:17:46 -0700 | From | Andrew Morton <> | Subject | Re: Is it possible to implement interrupt time printk's reliably? |
| |
Jon Smirl <jonsmirl@yahoo.com> wrote: > > Problem: > 1) Some operations on graphics cards cannot be stopped once they are started. > It's not reasonable to turn interrupts off around these operations. > 2) Kernel developers want console printk's to work from interrupt routines. > > How do you fix this situation?
Really you should use spin_lock_irqsave() on some driver-private lock around the operation. Why is it not reasonable to disable irq's? Duration, presumably?
If you're in process context you can use acquire_console_sem(), which will serialise against printk.
- 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/
| |