From patchwork Fri Nov 18 11:45:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Daniel Kachhap X-Patchwork-Id: 5211 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 3CE3023E03 for ; Fri, 18 Nov 2011 11:47:11 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 29B04A18303 for ; Fri, 18 Nov 2011 11:47:11 +0000 (UTC) Received: by faaa26 with SMTP id a26so7546031faa.11 for ; Fri, 18 Nov 2011 03:47:11 -0800 (PST) Received: by 10.152.162.10 with SMTP id xw10mr1762016lab.12.1321616830953; Fri, 18 Nov 2011 03:47:10 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.41.198 with SMTP id h6cs6274lal; Fri, 18 Nov 2011 03:47:10 -0800 (PST) Received: by 10.42.197.195 with SMTP id el3mr2014923icb.54.1321616828491; Fri, 18 Nov 2011 03:47:08 -0800 (PST) Received: from mail-iy0-f178.google.com (mail-iy0-f178.google.com [209.85.210.178]) by mx.google.com with ESMTPS id p6si278879icj.60.2011.11.18.03.47.07 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 Nov 2011 03:47:08 -0800 (PST) Received-SPF: pass (google.com: domain of amitdanielk@gmail.com designates 209.85.210.178 as permitted sender) client-ip=209.85.210.178; Authentication-Results: mx.google.com; spf=pass (google.com: domain of amitdanielk@gmail.com designates 209.85.210.178 as permitted sender) smtp.mail=amitdanielk@gmail.com; dkim=pass (test mode) header.i=@gmail.com Received: by iadj38 with SMTP id j38so4129133iad.37 for ; Fri, 18 Nov 2011 03:47:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=kXL4dJqZ449WhmWPfXhQqyQi+ADsRrcecdDSa8P4kBk=; b=mw9GAVuDQCtyeLEMtihu7DPMTIJ7pAD3PSlf6ej/BK07cQ1HNVRdEusf/3Fxi17dRv Hldvtcf77NBIinwTrcTKWs10ogo7e54D2duLtOrG9Y0Jtkrjycpe+0D/ItfDpu4Cb4i1 P94AKqUmtLYYpx7sYV8YeNpIEKc+BeUqEUxKU= Received: by 10.231.27.194 with SMTP id j2mr631932ibc.22.1321616827575; Fri, 18 Nov 2011 03:47:07 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id jm11sm2205017ibb.1.2011.11.18.03.47.04 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 Nov 2011 03:47:06 -0800 (PST) Sender: amit kachhap From: Amit Daniel Kachhap To: linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com Cc: patches@linaro.org, amit.kachhap@linaro.org Subject: [PATCH] ARM: exynos4: Fix for stall in case of cpu hotplug or sleep Date: Fri, 18 Nov 2011 17:15:52 +0530 Message-Id: <1321616752-1233-1-git-send-email-amit.kachhap@linaro.org> X-Mailer: git-send-email 1.7.1 This patch adds remove_irq in place of disable_irq which is correct equivalent function for setup_irq used in exynos4_mct_tick_init. Signed-off-by: Amit Daniel Kachhap Tested-by: Inderpal Singh --- arch/arm/mach-exynos/mct.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-exynos/mct.c b/arch/arm/mach-exynos/mct.c index 97343df..959f251 100644 --- a/arch/arm/mach-exynos/mct.c +++ b/arch/arm/mach-exynos/mct.c @@ -428,9 +428,13 @@ int __cpuinit local_timer_setup(struct clock_event_device *evt) void local_timer_stop(struct clock_event_device *evt) { + unsigned int cpu = smp_processor_id(); evt->set_mode(CLOCK_EVT_MODE_UNUSED, evt); if (mct_int_type == MCT_INT_SPI) - disable_irq(evt->irq); + if (cpu == 0) + remove_irq(evt->irq, &mct_tick0_event_irq); + else + remove_irq(evt->irq, &mct_tick1_event_irq); else disable_percpu_irq(IRQ_MCT_LOCALTIMER); }