Messages in this thread | | | Subject | Re: Clear interrupts on a SMP machine? | Date | Wed, 18 Oct 2000 15:31:18 +0100 (BST) | From | Alan Cox <> |
| |
> spin_lock_irqsave(&local_lock, flags); > Muck_With_The_RTC_Chip(); > spin_unlock_irqrestore(&local_lock, flags); > > This protects only the local procedure. In the meantime, somebody > else, using another CPU is mucking with the same RTC Chip. The
You need to put the spinlock in for every other use of the chip
> the data register. The "somebody else" is a realtime-clock ISR.
Thata fine. You can compute worst case accesses for your Muck_with_..
Alan
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
| |