From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claudio.Fontana@huawei.com (Claudio Fontana) Date: Wed, 12 Dec 2012 09:59:02 +0100 Subject: [PATCH RESEND 3] ARM: plat-versatile: move secondary CPU startup into cpuinit In-Reply-To: <50B47C31.2040709@huawei.com> References: <50B47C31.2040709@huawei.com> Message-ID: <50C84756.60200@huawei.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Using __CPUINIT instead of __INIT puts the secondary CPU startup code into the "right" section: it will not be freed in hotplug configurations, allowing hot-add of cpus, while still getting freed in non-hotplug configs. Signed-off-by: Claudio Fontana Tested-by: Claudio Fontana diff --git a/arch/arm/plat-versatile/headsmp.S b/arch/arm/plat-versatile/headsmp.S index dd703ef..19fe180 100644 --- a/arch/arm/plat-versatile/headsmp.S +++ b/arch/arm/plat-versatile/headsmp.S @@ -11,7 +11,7 @@ #include #include - __INIT + __CPUINIT /* * Realview/Versatile Express specific entry point for secondary CPUs. -- 1.7.12.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752576Ab2LLI7c (ORCPT ); Wed, 12 Dec 2012 03:59:32 -0500 Received: from szxga04-in.huawei.com ([119.145.14.67]:56848 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750927Ab2LLI7b (ORCPT ); Wed, 12 Dec 2012 03:59:31 -0500 Date: Wed, 12 Dec 2012 09:59:02 +0100 From: Claudio Fontana Subject: [PATCH RESEND 3] ARM: plat-versatile: move secondary CPU startup into cpuinit In-reply-to: <50B47C31.2040709@huawei.com> To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Christoffer Dall Message-id: <50C84756.60200@huawei.com> MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 7BIT User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Thunderbird/17.0 References: <50B47C31.2040709@huawei.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Using __CPUINIT instead of __INIT puts the secondary CPU startup code into the "right" section: it will not be freed in hotplug configurations, allowing hot-add of cpus, while still getting freed in non-hotplug configs. Signed-off-by: Claudio Fontana Tested-by: Claudio Fontana diff --git a/arch/arm/plat-versatile/headsmp.S b/arch/arm/plat-versatile/headsmp.S index dd703ef..19fe180 100644 --- a/arch/arm/plat-versatile/headsmp.S +++ b/arch/arm/plat-versatile/headsmp.S @@ -11,7 +11,7 @@ #include #include - __INIT + __CPUINIT /* * Realview/Versatile Express specific entry point for secondary CPUs. -- 1.7.12.1