Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 25 Jul 2002 13:24:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 25 Jul 2002 13:24:25 -0400 Received: from smtp.9tel.net ([213.203.124.147]:52201 "HELO smtp4.9tel.net") by vger.kernel.org with SMTP id ; Thu, 25 Jul 2002 13:24:25 -0400 Date: Thu, 25 Jul 2002 19:26:10 +0200 (CEST) From: Samuel Thibault Reply-To: Samuel Thibault To: Zwane Mwaikambo Cc: vojtech@suse.cz, martin@dalecki.de, alan@lxorguk.ukuu.org.uk, linux-kernel@vger.kernel.org, andre@linux-ide.org 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: 1133 Lines: 34 On Thu, 25 Jul 2002, Zwane Mwaikambo wrote: > 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); Well, I put it since many ide chipset drivers put it, but we may indeed get rid of it, provided the board isn't upset when parallel selectprocing / tuning on ide0 and ide1. I won't be able to test before September. Oh, btw, I only use one spinlock for timing computing, while there could be one per QD channel, which would speed up tunig :o) -- Samuel Thibault Hi ! I'm a .signature virus ! Copy me into your ~/.signature, please ! - 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/