From mboxrd@z Thu Jan 1 00:00:00 1970 From: travis@sgi.com Date: Wed, 30 Jan 2008 18:09:42 +0000 Subject: [PATCH 2/6] percpu: Change Kconfig to HAVE_SETUP_PER_CPU_AREA linux-2.6.git Message-Id: <20080130180940.369732000@sgi.com> List-Id: References: <20080130180940.022172000@sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Geert Uytterhoeven , Linus Torvalds , mingo@elte.hu, Thomas Gleixner Cc: Christoph Lameter , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andi Kleen , Tony Luck , David Miller , Sam Ravnborg , Rusty Russell , linuxppc-dev@ozlabs.org, linux-ia64@vger.kernel.org Change: config ARCH_SETS_UP_PER_CPU_AREA to: config HAVE_SETUP_PER_CPU_AREA Based on latest linux-2.6.git Cc: Andi Kleen Cc: Tony Luck Cc: David Miller Cc: Sam Ravnborg Cc: Rusty Russell Cc: Geert Uytterhoeven Cc: linuxppc-dev@ozlabs.org Cc: linux-ia64@vger.kernel.org Signed-off-by: Mike Travis --- linux-2.6.git: - added back in missing pieces from x86.git merge The change to using "select xxx" as suggested by Sam requires an addition to a non-existant file (arch/Kconfig) so I went back to using "config xxx" to introduce the flag. --- arch/ia64/Kconfig | 2 +- arch/powerpc/Kconfig | 2 +- arch/sparc64/Kconfig | 2 +- init/main.c | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) --- a/arch/ia64/Kconfig +++ b/arch/ia64/Kconfig @@ -80,7 +80,7 @@ config GENERIC_TIME_VSYSCALL bool default y -config ARCH_SETS_UP_PER_CPU_AREA +config HAVE_SETUP_PER_CPU_AREA def_bool y config DMI --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -42,7 +42,7 @@ config GENERIC_HARDIRQS bool default y -config ARCH_SETS_UP_PER_CPU_AREA +config HAVE_SETUP_PER_CPU_AREA def_bool PPC64 config IRQ_PER_CPU --- a/arch/sparc64/Kconfig +++ b/arch/sparc64/Kconfig @@ -66,7 +66,7 @@ config AUDIT_ARCH bool default y -config ARCH_SETS_UP_PER_CPU_AREA +config HAVE_SETUP_PER_CPU_AREA def_bool y config ARCH_NO_VIRT_TO_BUS --- a/init/main.c +++ b/init/main.c @@ -380,6 +380,8 @@ static void __init setup_per_cpu_areas(v /* Copy section for each CPU (we discard the original) */ size = ALIGN(PERCPU_ENOUGH_ROOM, PAGE_SIZE); + printk(KERN_INFO + "PERCPU: Allocating %lu bytes of per cpu data (main)\n", size); ptr = alloc_bootmem_pages(size * nr_possible_cpus); for_each_possible_cpu(i) { -- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay2.sgi.com [192.48.171.30]) by ozlabs.org (Postfix) with ESMTP id 33B99DDF0D for ; Thu, 31 Jan 2008 05:09:43 +1100 (EST) Message-Id: <20080130180940.369732000@sgi.com> References: <20080130180940.022172000@sgi.com> Date: Wed, 30 Jan 2008 10:09:42 -0800 From: travis@sgi.com To: Geert Uytterhoeven , Linus Torvalds , mingo@elte.hu, Thomas Gleixner Subject: [PATCH 2/6] percpu: Change Kconfig to HAVE_SETUP_PER_CPU_AREA linux-2.6.git Cc: Tony Luck , linux-ia64@vger.kernel.org, linuxppc-dev@ozlabs.org, Rusty Russell , Andi Kleen , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Sam Ravnborg , David Miller , Christoph Lameter List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Change: config ARCH_SETS_UP_PER_CPU_AREA to: config HAVE_SETUP_PER_CPU_AREA Based on latest linux-2.6.git Cc: Andi Kleen Cc: Tony Luck Cc: David Miller Cc: Sam Ravnborg Cc: Rusty Russell Cc: Geert Uytterhoeven Cc: linuxppc-dev@ozlabs.org Cc: linux-ia64@vger.kernel.org Signed-off-by: Mike Travis --- linux-2.6.git: - added back in missing pieces from x86.git merge The change to using "select xxx" as suggested by Sam requires an addition to a non-existant file (arch/Kconfig) so I went back to using "config xxx" to introduce the flag. --- arch/ia64/Kconfig | 2 +- arch/powerpc/Kconfig | 2 +- arch/sparc64/Kconfig | 2 +- init/main.c | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) --- a/arch/ia64/Kconfig +++ b/arch/ia64/Kconfig @@ -80,7 +80,7 @@ config GENERIC_TIME_VSYSCALL bool default y -config ARCH_SETS_UP_PER_CPU_AREA +config HAVE_SETUP_PER_CPU_AREA def_bool y config DMI --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -42,7 +42,7 @@ config GENERIC_HARDIRQS bool default y -config ARCH_SETS_UP_PER_CPU_AREA +config HAVE_SETUP_PER_CPU_AREA def_bool PPC64 config IRQ_PER_CPU --- a/arch/sparc64/Kconfig +++ b/arch/sparc64/Kconfig @@ -66,7 +66,7 @@ config AUDIT_ARCH bool default y -config ARCH_SETS_UP_PER_CPU_AREA +config HAVE_SETUP_PER_CPU_AREA def_bool y config ARCH_NO_VIRT_TO_BUS --- a/init/main.c +++ b/init/main.c @@ -380,6 +380,8 @@ static void __init setup_per_cpu_areas(v /* Copy section for each CPU (we discard the original) */ size = ALIGN(PERCPU_ENOUGH_ROOM, PAGE_SIZE); + printk(KERN_INFO + "PERCPU: Allocating %lu bytes of per cpu data (main)\n", size); ptr = alloc_bootmem_pages(size * nr_possible_cpus); for_each_possible_cpu(i) { -- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764220AbYA3SKW (ORCPT ); Wed, 30 Jan 2008 13:10:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756714AbYA3SJo (ORCPT ); Wed, 30 Jan 2008 13:09:44 -0500 Received: from relay2.sgi.com ([192.48.171.30]:33308 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752480AbYA3SJm (ORCPT ); Wed, 30 Jan 2008 13:09:42 -0500 Message-Id: <20080130180940.369732000@sgi.com> References: <20080130180940.022172000@sgi.com> User-Agent: quilt/0.46-1 Date: Wed, 30 Jan 2008 10:09:42 -0800 From: travis@sgi.com To: Geert Uytterhoeven , Linus Torvalds , mingo@elte.hu, Thomas Gleixner Cc: Christoph Lameter , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andi Kleen , Tony Luck , David Miller , Sam Ravnborg , Rusty Russell , linuxppc-dev@ozlabs.org, linux-ia64@vger.kernel.org Subject: [PATCH 2/6] percpu: Change Kconfig to HAVE_SETUP_PER_CPU_AREA linux-2.6.git Content-Disposition: inline; filename=change-configs Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change: config ARCH_SETS_UP_PER_CPU_AREA to: config HAVE_SETUP_PER_CPU_AREA Based on latest linux-2.6.git Cc: Andi Kleen Cc: Tony Luck Cc: David Miller Cc: Sam Ravnborg Cc: Rusty Russell Cc: Geert Uytterhoeven Cc: linuxppc-dev@ozlabs.org Cc: linux-ia64@vger.kernel.org Signed-off-by: Mike Travis --- linux-2.6.git: - added back in missing pieces from x86.git merge The change to using "select xxx" as suggested by Sam requires an addition to a non-existant file (arch/Kconfig) so I went back to using "config xxx" to introduce the flag. --- arch/ia64/Kconfig | 2 +- arch/powerpc/Kconfig | 2 +- arch/sparc64/Kconfig | 2 +- init/main.c | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) --- a/arch/ia64/Kconfig +++ b/arch/ia64/Kconfig @@ -80,7 +80,7 @@ config GENERIC_TIME_VSYSCALL bool default y -config ARCH_SETS_UP_PER_CPU_AREA +config HAVE_SETUP_PER_CPU_AREA def_bool y config DMI --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -42,7 +42,7 @@ config GENERIC_HARDIRQS bool default y -config ARCH_SETS_UP_PER_CPU_AREA +config HAVE_SETUP_PER_CPU_AREA def_bool PPC64 config IRQ_PER_CPU --- a/arch/sparc64/Kconfig +++ b/arch/sparc64/Kconfig @@ -66,7 +66,7 @@ config AUDIT_ARCH bool default y -config ARCH_SETS_UP_PER_CPU_AREA +config HAVE_SETUP_PER_CPU_AREA def_bool y config ARCH_NO_VIRT_TO_BUS --- a/init/main.c +++ b/init/main.c @@ -380,6 +380,8 @@ static void __init setup_per_cpu_areas(v /* Copy section for each CPU (we discard the original) */ size = ALIGN(PERCPU_ENOUGH_ROOM, PAGE_SIZE); + printk(KERN_INFO + "PERCPU: Allocating %lu bytes of per cpu data (main)\n", size); ptr = alloc_bootmem_pages(size * nr_possible_cpus); for_each_possible_cpu(i) { -- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <20080130180940.369732000@sgi.com> References: <20080130180940.022172000@sgi.com> Date: Wed, 30 Jan 2008 10:09:42 -0800 From: travis@sgi.com Subject: [PATCH 2/6] percpu: Change Kconfig to HAVE_SETUP_PER_CPU_AREA linux-2.6.git Content-Disposition: inline; filename=change-configs Sender: owner-linux-mm@kvack.org Return-Path: To: Geert Uytterhoeven , Linus Torvalds , mingo@elte.hu, Thomas Gleixner , config@kvack.org, HAVE_SETUP_PER_CPU_AREA@kvack.org Cc: Christoph Lameter , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andi Kleen , Tony Luck , David Miller , Sam Ravnborg , Rusty Russell , linuxppc-dev@ozlabs.org, linux-ia64@vger.kernel.org List-ID: Based on latest linux-2.6.git Cc: Andi Kleen Cc: Tony Luck Cc: David Miller Cc: Sam Ravnborg Cc: Rusty Russell Cc: Geert Uytterhoeven Cc: linuxppc-dev@ozlabs.org Cc: linux-ia64@vger.kernel.org Signed-off-by: Mike Travis --- linux-2.6.git: - added back in missing pieces from x86.git merge The change to using "select xxx" as suggested by Sam requires an addition to a non-existant file (arch/Kconfig) so I went back to using "config xxx" to introduce the flag. --- arch/ia64/Kconfig | 2 +- arch/powerpc/Kconfig | 2 +- arch/sparc64/Kconfig | 2 +- init/main.c | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) --- a/arch/ia64/Kconfig +++ b/arch/ia64/Kconfig @@ -80,7 +80,7 @@ config GENERIC_TIME_VSYSCALL bool default y -config ARCH_SETS_UP_PER_CPU_AREA +config HAVE_SETUP_PER_CPU_AREA def_bool y config DMI --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -42,7 +42,7 @@ config GENERIC_HARDIRQS bool default y -config ARCH_SETS_UP_PER_CPU_AREA +config HAVE_SETUP_PER_CPU_AREA def_bool PPC64 config IRQ_PER_CPU --- a/arch/sparc64/Kconfig +++ b/arch/sparc64/Kconfig @@ -66,7 +66,7 @@ config AUDIT_ARCH bool default y -config ARCH_SETS_UP_PER_CPU_AREA +config HAVE_SETUP_PER_CPU_AREA def_bool y config ARCH_NO_VIRT_TO_BUS --- a/init/main.c +++ b/init/main.c @@ -380,6 +380,8 @@ static void __init setup_per_cpu_areas(v /* Copy section for each CPU (we discard the original) */ size = ALIGN(PERCPU_ENOUGH_ROOM, PAGE_SIZE); + printk(KERN_INFO + "PERCPU: Allocating %lu bytes of per cpu data (main)\n", size); ptr = alloc_bootmem_pages(size * nr_possible_cpus); for_each_possible_cpu(i) { -- -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org