Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755640AbZJAH3D (ORCPT ); Thu, 1 Oct 2009 03:29:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755617AbZJAH3C (ORCPT ); Thu, 1 Oct 2009 03:29:02 -0400 Received: from [195.41.46.236] ([195.41.46.236]:47524 "EHLO pfepb.post.tele.dk" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1755609AbZJAH3B (ORCPT ); Thu, 1 Oct 2009 03:29:01 -0400 Date: Thu, 1 Oct 2009 09:28:57 +0200 From: Sam Ravnborg To: Ingo Molnar Cc: Eric Dumazet , Linus Torvalds , Arjan van de Ven , Martin Schwidefsky , Thomas Gleixner , John Stultz , Linux Kernel Mailing List , Peter Zijlstra Subject: Re: [GIT PULL] scheduler fixes Message-ID: <20091001072857.GA16070@merkur.ravnborg.org> References: <4AC37FE5.7020200@gmail.com> <20090930185315.GA9716@elte.hu> <20090930220342.GA2118@elte.hu> <4AC43E7E.1000600@gmail.com> <20091001061109.GA21488@elte.hu> <4AC449BD.1060003@gmail.com> <20091001064209.GA25189@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20091001064209.GA25189@elte.hu> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1662 Lines: 51 On Thu, Oct 01, 2009 at 08:42:09AM +0200, Ingo Molnar wrote: > > * Eric Dumazet wrote: > > > Ingo Molnar a ?crit : > > > > > > That's not enough - the inline assembly code in > > > arch/x86/include/asm/cmpxchg_32.h should also not reference > > > cmpxchg8b_emu in that case. > > > > > > > I believe it is OK as is, since cmpxchg8b_emu is referenced only > > once, in a section guarded by : > > #ifndef CONFIG_X86_CMPXCHG64 > > yeah. But this bit is wrong: > > > +++ b/arch/x86/lib/Makefile > > @@ -15,8 +15,10 @@ ifeq ($(CONFIG_X86_32),y) > > obj-y += atomic64_32.o > > lib-y += checksum_32.o > > lib-y += strstr_32.o > > - lib-y += semaphore_32.o string_32.o cmpxchg8b_emu.o > > - > > + lib-y += semaphore_32.o string_32.o > > +ifeq ($(CONFIG_X86_CMPXCHG64),n) > > + lib-y += cmpxchg8b_emu.o > > +endif > > lib-$(CONFIG_X86_USE_3DNOW) += mmx_32.o > > else > > obj-y += io_64.o iomap_copy_64.o > > The way to check for a disabled option in a Make rule is: > > ifneq ($(CONFIG_X86_CMPXCHG64),y) or ifeq ($(CONFIG_X86_CMPXCHG64),) Both variants are suboptimal - but I have not been able to come up with something readable in this situation. Looking at the above the first is the better version as it is a bit more obvious what we test for (assuming reader knows this is a boolean value and not tristate). Sam -- 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/