From patchwork Thu Oct 31 16:10:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Soren Brinkmann X-Patchwork-Id: 3121121 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B6212C146B for ; Thu, 31 Oct 2013 16:12:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A2B7720443 for ; Thu, 31 Oct 2013 16:12:41 +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 6D1A820445 for ; Thu, 31 Oct 2013 16:12:40 +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 1Vbuqb-0001ol-8e; Thu, 31 Oct 2013 16:11:49 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VbuqK-0004NF-Cl; Thu, 31 Oct 2013 16:11:32 +0000 Received: from mail-pa0-x229.google.com ([2607:f8b0:400e:c03::229]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vbupn-0004Hr-3A for linux-arm-kernel@lists.infradead.org; Thu, 31 Oct 2013 16:11:00 +0000 Received: by mail-pa0-f41.google.com with SMTP id rd3so2816630pab.0 for ; Thu, 31 Oct 2013 09:10:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=JzH5xZ6B3vz2lNJHkgRciSaMB3ZUM0/bJv0C5vBeDwQ=; b=f9t8ZhJwwtu8LiKqhkLpeMu4JIHFKRic2gaCoyA7WTi02Hq09CpobYD+JHNwDWl64u NHBXI2yF1ryYgb8C5P8I3+mGXbJ94u7REskZUoExmwc3ighah22FH3nwOaJwLryzqfk+ laBjkts1PgTVThYk1slPs+frsmTQvRDXGDQ9qXYAFXWBgOSvRc+hH7OW11KZv6EJLKYX o12nG0Vk9JJFpuIzVdyaSDad0RM1KouucPmNJ+RNbtbkrfLLrP9+CKaVz8J1aUHI+mCq s3YLnjhMv7psWqfGIWHO9wnXb6V8m4qz5mGXU1kJKoqWf9znTPIs1Xg7BIU07gdJkM7i 8zTg== X-Received: by 10.66.177.71 with SMTP id co7mr2676634pac.181.1383235837566; Thu, 31 Oct 2013 09:10:37 -0700 (PDT) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id tu6sm5059814pbc.41.2013.10.31.09.10.35 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 31 Oct 2013 09:10:35 -0700 (PDT) From: Soren Brinkmann To: Michal Simek , Russell King Subject: [PATCH 3/6] arm: zynq: Add support for zynq_cpu_kill function Date: Thu, 31 Oct 2013 09:10:16 -0700 Message-Id: <1383235819-2552-4-git-send-email-soren.brinkmann@xilinx.com> X-Mailer: git-send-email 1.8.4.1 In-Reply-To: <1383235819-2552-1-git-send-email-soren.brinkmann@xilinx.com> References: <1383235819-2552-1-git-send-email-soren.brinkmann@xilinx.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131031_121059_283003_8B76BEDD X-CRM114-Status: GOOD ( 10.72 ) X-Spam-Score: -1.9 (-) Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?S=C3=B6ren=20Brinkmann?= 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.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable 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: Michal Simek Use simple hook to slcr to stop cpu. Signed-off-by: Michal Simek --- arch/arm/mach-zynq/platsmp.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/mach-zynq/platsmp.c b/arch/arm/mach-zynq/platsmp.c index daed70682c54..4f592a7efc10 100644 --- a/arch/arm/mach-zynq/platsmp.c +++ b/arch/arm/mach-zynq/platsmp.c @@ -126,11 +126,20 @@ static void __init zynq_smp_prepare_cpus(unsigned int max_cpus) scu_enable(zynq_scu_base); } +#ifdef CONFIG_HOTPLUG_CPU +static int zynq_cpu_kill(unsigned cpu) +{ + zynq_slcr_cpu_stop(cpu); + return 1; +} +#endif + struct smp_operations zynq_smp_ops __initdata = { .smp_init_cpus = zynq_smp_init_cpus, .smp_prepare_cpus = zynq_smp_prepare_cpus, .smp_boot_secondary = zynq_boot_secondary, #ifdef CONFIG_HOTPLUG_CPU .cpu_die = zynq_platform_cpu_die, + .cpu_kill = zynq_cpu_kill, #endif };