From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756576AbYDXWOs (ORCPT ); Thu, 24 Apr 2008 18:14:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754755AbYDXWOi (ORCPT ); Thu, 24 Apr 2008 18:14:38 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:37319 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754767AbYDXWOh (ORCPT ); Thu, 24 Apr 2008 18:14:37 -0400 Date: Thu, 24 Apr 2008 15:14:15 -0700 (PDT) From: Linus Torvalds To: Ingo Molnar cc: linux-kernel@vger.kernel.org, Andrew Morton , Thomas Gleixner , "H. Peter Anvin" , Alexander van Heukelum Subject: Re: [git pull] generic bitops In-Reply-To: <20080424215739.GA32378@elte.hu> Message-ID: References: <20080424215739.GA32378@elte.hu> User-Agent: Alpine 1.10 (LFD 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 24 Apr 2008, Ingo Molnar wrote: > > this started out as improvements/generalizations to x86 bitops, but grew > generic impact (and generic optimizations) as well, so it's offered as a > separate tree. Can you do the config thing differently? > diff --git a/arch/um/Kconfig.i386 b/arch/um/Kconfig.i386 > index e09edfa..49990ea 100644 > --- a/arch/um/Kconfig.i386 > +++ b/arch/um/Kconfig.i386 > @@ -39,6 +39,14 @@ config ARCH_REUSE_HOST_VSYSCALL_AREA > bool > default y > > +config GENERIC_FIND_FIRST_BIT > + bool > + default y > + > +config GENERIC_FIND_NEXT_BIT > + bool > + default y > + .. because instead of having each architecture do these kinds of things, we're trying to make the *generic* code (ie lib/Kconfig) do config GENERIC_FIND_FIRST_BIT bool default n so that you only have one single declaration (close to where the code actually exists), and then the architectures would just do select GENERIC_FIND_FIRST_BIT select GENERIC_FIND_NEXT_BIT in their architecture settings. That's how we're now doing things like HAVE_IDE, HAVE_OPROFILE, etc etc. Hmm? Linus