From patchwork Wed Mar 27 10:22:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 15691 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 0E5CD23E66 for ; Wed, 27 Mar 2013 10:22:25 +0000 (UTC) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by fiordland.canonical.com (Postfix) with ESMTP id B68F4A18177 for ; Wed, 27 Mar 2013 10:22:24 +0000 (UTC) Received: by mail-vc0-f179.google.com with SMTP id gf12so6444940vcb.10 for ; Wed, 27 Mar 2013 03:22:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=cSsjUBvWl03VpxABhId+lZPD01Qt2ZOpHZoIUYiyFIs=; b=YIxwTRaApa3WpLlMUwBMllIieie93cwRLRXdLa1D6mVMsvz3FtN1JbNrIsYsJbFPw/ xspozkFSkuBxw86utA90PWyg+TwY2LlxFecvE6dDAgeYeK12j8BJCOEU1YIUE6HzF74Y 8mcMh90zxqhQ9ssFEy6M+9AJZiJsTsDJ8rEKQLpyQA9fTx2tGDL+1J3io9rvotCBSnzE HGdxjOx3tMiv1lHhfqXQ6uIkTU0rH4lveY/YkTqU+m8IP5ZNxDQlr4u7PKi1+/Jz42AI Kgz0BNvkig5jxFF6nzlJnktO7UJgGE1i4Y909baJSf4o9/qT5rZmpqPMwffUQC1vFLin Hx2w== X-Received: by 10.220.150.74 with SMTP id x10mr2202538vcv.68.1364379744277; Wed, 27 Mar 2013 03:22:24 -0700 (PDT) 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.59.4.204 with SMTP id cg12csp109289ved; Wed, 27 Mar 2013 03:22:23 -0700 (PDT) X-Received: by 10.194.119.200 with SMTP id kw8mr30212796wjb.31.1364379743368; Wed, 27 Mar 2013 03:22:23 -0700 (PDT) Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com [74.125.82.48]) by mx.google.com with ESMTPS id c2si2245324wix.59.2013.03.27.03.22.22 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Mar 2013 03:22:23 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.48 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=74.125.82.48; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.48 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: by mail-wg0-f48.google.com with SMTP id m15so316428wgh.27 for ; Wed, 27 Mar 2013 03:22:22 -0700 (PDT) X-Received: by 10.194.83.33 with SMTP id n1mr30444704wjy.7.1364379742857; Wed, 27 Mar 2013 03:22:22 -0700 (PDT) Received: from mai.home (AToulouse-654-1-426-131.w2-6.abo.wanadoo.fr. [2.6.209.131]) by mx.google.com with ESMTPS id dp5sm7754760wib.1.2013.03.27.03.22.20 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Mar 2013 03:22:22 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl Cc: tglx@linutronix.de, linus.walleij@linaro.org, kernel@pengutronix.de, santosh.shilimkar@ti.com, linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, patches@linaro.org Subject: [PATCH 3/5] cpuidle: ux500: remove timer broadcast initialization Date: Wed, 27 Mar 2013 11:22:11 +0100 Message-Id: <1364379733-23725-3-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1364379733-23725-1-git-send-email-daniel.lezcano@linaro.org> References: <1364379733-23725-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQkeiM9zVb1uK6K2U9LWF7JW/TQD3jtdsKAquWd4ILm6GZRTXR9VGIdc72aPNAwhbFXPhRa4 The initialization is done from the cpuidle framework. Signed-off-by: Daniel Lezcano --- arch/arm/mach-ux500/cpuidle.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/arch/arm/mach-ux500/cpuidle.c b/arch/arm/mach-ux500/cpuidle.c index 6d0c4b6..1b16d9e 100644 --- a/arch/arm/mach-ux500/cpuidle.c +++ b/arch/arm/mach-ux500/cpuidle.c @@ -11,7 +11,6 @@ #include #include -#include #include #include #include @@ -112,16 +111,6 @@ static struct cpuidle_driver ux500_idle_driver = { .state_count = 2, }; -/* - * For each cpu, setup the broadcast timer because we will - * need to migrate the timers for the states >= ApIdle. - */ -static void ux500_setup_broadcast_timer(void *arg) -{ - int cpu = smp_processor_id(); - clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ON, &cpu); -} - int __init ux500_idle_init(void) { int ret, cpu; @@ -131,13 +120,6 @@ int __init ux500_idle_init(void) prcmu_enable_wakeups(PRCMU_WAKEUP(ARM) | PRCMU_WAKEUP(RTC) | PRCMU_WAKEUP(ABB)); - /* - * Configure the timer broadcast for each cpu, that must - * be done from the cpu context, so we use a smp cross - * call with 'on_each_cpu'. - */ - on_each_cpu(ux500_setup_broadcast_timer, NULL, 1); - ret = cpuidle_register_driver(&ux500_idle_driver); if (ret) { printk(KERN_ERR "failed to register ux500 idle driver\n");