Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759800AbYCURif (ORCPT ); Fri, 21 Mar 2008 13:38:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753504AbYCURi1 (ORCPT ); Fri, 21 Mar 2008 13:38:27 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:56898 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752727AbYCURi0 (ORCPT ); Fri, 21 Mar 2008 13:38:26 -0400 Date: Fri, 21 Mar 2008 10:37:32 -0700 From: Andrew Morton To: Jean Delvare Cc: Alan Stern , Michael Buesch , Henrique de Moraes Holschuh , David Brownell , Richard Purdie , , Ingo Molnar , Geert Uytterhoeven Subject: Re: use of preempt_count instead of in_atomic() at leds-gpio.c Message-Id: <20080321103732.ea08e189.akpm@linux-foundation.org> In-Reply-To: <20080321105311.1a55cc0f@hyperion.delvare> References: <20080320192719.6a32386e.akpm@linux-foundation.org> <20080320201723.b87b3732.akpm@linux-foundation.org> <20080321105311.1a55cc0f@hyperion.delvare> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.5; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 815 Lines: 21 On Fri, 21 Mar 2008 10:53:11 +0100 Jean Delvare wrote: > On Thu, 20 Mar 2008 20:17:23 -0700, Andrew Morton wrote: > > in_atomic() is for core kernel use only. (...) > > Then why is it made available to drivers through ? Because we suck. > If > it's such a dangerous macro to call from drivers, it shouldn't be made > available, or at the very least there should be a big fat warning in > that drivers aren't supposed to use it. This would > have avoided the 23 uses cases in drivers we have right now. True. -- 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/