Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 25 Jul 2002 11:27:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 25 Jul 2002 11:27:04 -0400 Received: from [196.26.86.1] ([196.26.86.1]:52448 "HELO infosat-gw.realnet.co.sz") by vger.kernel.org with SMTP id ; Thu, 25 Jul 2002 11:27:03 -0400 Date: Thu, 25 Jul 2002 17:47:50 +0200 (SAST) From: Zwane Mwaikambo X-X-Sender: zwane@linux-box.realnet.co.sz To: Samuel Thibault Cc: vojtech@suse.cz, , , , Subject: Re: [PATCH] drivers/ide/qd65xx: no cli/sti (2.4.19-pre3 & 2.5.28) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 632 Lines: 25 On Thu, 25 Jul 2002, Samuel Thibault wrote: > static void qd_write_reg (byte content, byte reg) > { > unsigned long flags; > > - save_flags(flags); /* all CPUs */ > - cli(); /* all CPUs */ > + spin_lock_irqsave(&qd_iolock,flags); > outb(content,reg); Do we need a lock/cli for that one outb? > + spin_unlock_irqrestore(&qd_iolock,flags); Zwane -- function.linuxpower.ca - 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/