Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 22 Jul 2002 09:42:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 22 Jul 2002 09:42:03 -0400 Received: from mx1.elte.hu ([157.181.1.137]:59034 "HELO mx1.elte.hu") by vger.kernel.org with SMTP id ; Mon, 22 Jul 2002 09:42:01 -0400 Date: Mon, 22 Jul 2002 15:43:50 +0200 (CEST) From: Ingo Molnar Reply-To: Ingo Molnar To: Christoph Hellwig Cc: Russell King , Linus Torvalds , Robert Love , Subject: Re: [patch] cli()/sti() cleanup, 2.5.27-A2 In-Reply-To: <20020722152056.A18619@lst.de> 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: 814 Lines: 25 On Mon, 22 Jul 2002, Christoph Hellwig wrote: > void irq_off(void); > void irq_on(void); > > flags_t irq_save(); > void irq_restore(flags_t); i'm not so sure about flags_t. 'unsigned long' worked pretty well so far, and i do not see the need for a more complex (or more opaque) irqflags type. It's not that we confuse flags with some other flag all that frequently that would necessiate some structure-based more abstract protection of these variables. (wrt. inline functions, every architecture is free to define them as inline functions as they see fit.) Ingo - 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/