[lkml]   [2001]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Q serial.c
At 9:51 AM -0400 2001-06-22, Stuart MacDonald wrote:
>From: "kees" <>
>> What may happen on a SMP machine if a serial port has been closed and the
>> closing stage is at shutdown() in serial.c in the call to free_IRQ and
>> BEFORE the IRQ is really shutdown, a new character arrives which causes an
>> IRQ? Is it possible that the OTHER cpu takes this interrupt and causes a
>> crash?
>I'm looking at serial-5.05/serial.c. You'll notice at the
>beginning of shutdown the saveflags(); cli(); calls.
>This disables interrupts. The uart will not be able to
>generate IRQs even if new characters arrive.

The other CPU servicing the interrupt, was the question. cli()
doesn't affect that. This could presumably happen if shutdown() gets
run on a non-interrupt-servicing CPU, or if interrupts are
dynamically routed (eg round-robin).

Where can I find the 5.05 driver?
/Jonathan Lundell.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:55    [W:0.063 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site