lkml.org 
[lkml]   [2000]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Clear interrupts on a SMP machine?
Date
From
> 	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/

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