Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 6 Oct 2001 09:06:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 6 Oct 2001 09:06:40 -0400 Received: from hermes.toad.net ([162.33.130.251]:48297 "EHLO hermes.toad.net") by vger.kernel.org with ESMTP id ; Sat, 6 Oct 2001 09:06:27 -0400 Subject: Re: Question about rtc_lock From: Thomas Hood To: Alan Cox Cc: linux-kernel@vger.kernel.org In-Reply-To: In-Reply-To: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.14 (Preview Release) Date: 06 Oct 2001 09:06:24 -0400 Message-Id: <1002373586.813.119.camel@thanatos> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2001-10-06 at 09:01, Alan Cox wrote: > > spin_lock(&rtc_lock); > > CMOS_WRITE(v, sbf_port); > > spin_unlock(&rtc_lock); > > > > Does this code run with irqs disabled, or should these > > spinlocks be _irq ? > > The CMOS isnt accessed from IRQ handlers No, but what if the rtc interrupts while the lock is held in this bit of code? Thomas - 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/