From patchwork Wed Aug 7 22:13:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 2840609 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6CDBB9F493 for ; Wed, 7 Aug 2013 22:14:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 93AF820564 for ; Wed, 7 Aug 2013 22:14:06 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0637720560 for ; Wed, 7 Aug 2013 22:14:05 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7BzM-0004WT-9h; Wed, 07 Aug 2013 22:13:52 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7BzF-0007R7-JG; Wed, 07 Aug 2013 22:13:45 +0000 Received: from mail-pb0-x234.google.com ([2607:f8b0:400e:c01::234]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7BzB-0007PQ-Rb for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2013 22:13:43 +0000 Received: by mail-pb0-f52.google.com with SMTP id wz12so2383049pbc.39 for ; Wed, 07 Aug 2013 15:13:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=2J6W94RDxEZSM+h9LiZ6HZEXhGLF/C6TeOLihS9shcA=; b=I4wgcJXHB/JMeUsmknfGuImXVtYqBQbQbwoDxOwvAq0t2NBdPczNfeGh7P8CGKIQO2 JXWisne13dk/UILGX8r0jiZP41gshvhbBCDMasbZ0hb+3L2DsF71i2FeoCILTFrZ/haX cixqgJG7ZitW2SdEsxMf2wx+p4IG15zfmDKNaFIQrswskrd+CJH3Aj4inb5hUyNudZz/ auQjF4yMvKcz4l5cf7ubKyVNBlRr/Icld715XMHmZJiTEdtcKHo8cZp5Ojz1ynu3SFJ0 XL1V2YTgqZgQADzAaLKysdflo8le4f/OabWKqLyrS1o2zhQvHNpdxiSlQZsvHJAkwvGF Wa2g== X-Received: by 10.68.58.97 with SMTP id p1mr2767891pbq.144.1375913598244; Wed, 07 Aug 2013 15:13:18 -0700 (PDT) Received: from [127.0.0.1] (ac230065.ppp.asahi-net.or.jp. [183.77.230.65]) by mx.google.com with ESMTPSA id aj3sm12546868pad.8.2013.08.07.15.13.15 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 Aug 2013 15:13:17 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Thu, 08 Aug 2013 07:13:30 +0900 Message-Id: <20130807221330.22251.32764.sendpatchset@w520> In-Reply-To: <20130807221321.22251.22774.sendpatchset@w520> References: <20130807221321.22251.22774.sendpatchset@w520> Subject: [PATCH 01/05] ARM: shmobile: Introduce shmobile_smp_cpu_disable() X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130807_181342_270523_9631FB7B X-CRM114-Status: UNSURE ( 7.70 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: olof@lixom.net, horms@verge.net.au, Magnus Damm , arnd@arndb.de, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm Introduce the shared CPU Hotplug function shmobile_smp_cpu_disable() for mach-shmobile. It is useful for the case when all CPUs may be hotplugged, including CPU 0. Signed-off-by: Magnus Damm --- arch/arm/mach-shmobile/include/mach/common.h | 1 + arch/arm/mach-shmobile/platsmp.c | 7 +++++++ 2 files changed, 8 insertions(+) --- 0009/arch/arm/mach-shmobile/include/mach/common.h +++ work/arch/arm/mach-shmobile/include/mach/common.h 2013-07-29 22:19:44.000000000 +0900 @@ -17,6 +17,7 @@ extern unsigned long shmobile_smp_arg[]; extern unsigned long shmobile_smp_mpidr[]; extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn, unsigned long arg); +extern int shmobile_smp_cpu_disable(unsigned int cpu); extern void shmobile_boot_scu(void); extern void shmobile_smp_scu_prepare_cpus(unsigned int max_cpus); extern int shmobile_smp_scu_boot_secondary(unsigned int cpu, --- 0009/arch/arm/mach-shmobile/platsmp.c +++ work/arch/arm/mach-shmobile/platsmp.c 2013-07-29 22:19:29.000000000 +0900 @@ -40,3 +40,10 @@ void shmobile_smp_hook(unsigned int cpu, shmobile_smp_arg[cpu] = arg; flush_cache_all(); } + +#ifdef CONFIG_HOTPLUG_CPU +int shmobile_smp_cpu_disable(unsigned int cpu) +{ + return 0; /* Hotplug of any CPU is supported */ +} +#endif