Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752582AbZLSItU (ORCPT ); Sat, 19 Dec 2009 03:49:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751020AbZLSItS (ORCPT ); Sat, 19 Dec 2009 03:49:18 -0500 Received: from gate.crashing.org ([63.228.1.57]:55426 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750822AbZLSItR (ORCPT ); Sat, 19 Dec 2009 03:49:17 -0500 Subject: Re: [PATCH 5/6 v5] CPU probe/release files From: Benjamin Herrenschmidt To: Andreas Schwab Cc: Nathan Fontenot , linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: References: <4AE8ADCF.6090104@austin.ibm.com> <4AE8B072.1070603@austin.ibm.com> Content-Type: text/plain; charset="UTF-8" Date: Sat, 19 Dec 2009 19:46:55 +1100 Message-ID: <1261212415.2173.94.camel@pasglop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1674 Lines: 47 On Fri, 2009-12-18 at 15:33 +0100, Andreas Schwab wrote: > Nathan Fontenot writes: > > > Index: powerpc/arch/powerpc/Kconfig > > =================================================================== > > --- powerpc.orig/arch/powerpc/Kconfig 2009-10-28 15:21:47.000000000 -0500 > > +++ powerpc/arch/powerpc/Kconfig 2009-10-28 15:21:53.000000000 -0500 > > @@ -320,6 +320,10 @@ > > > > Say N if you are unsure. > > > > +config ARCH_CPU_PROBE_RELEASE > > + def_bool y > > + depends on HOTPLUG_CPU > > + > > That does not work. > > drivers/built-in.o: In function `.store_online': > cpu.c:(.ref.text+0xf5c): undefined reference to `.cpu_hotplug_driver_lock' > cpu.c:(.ref.text+0xfc8): undefined reference to `.cpu_hotplug_driver_unlock' > make: *** [.tmp_vmlinux1] Error 1 > > cpu_hotplug_driver_lock is only defined on pseries, but HOTPLUG_CPU is > also defined on pmac. Well, the stuff was merged ... so we need to fix it. Nathan, the problem is that the above wlil define ARCH_CPU_PROBE_RELEASE for any powerpc platform that has HOTPLUG_CPU. So a kernel that doesn't have pSeries support but has hotplug CPU will have a problem, though for some reason none of my test configs triggered it (I'll have to check why next week). The right approach here is to have cpu_hotplug_driver_lock go through ppc_md. I suppose, along with some of the other CPU hotplug platform specific bits. Cheers, Ben. -- 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/