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: 2349231 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 0338ADFE82 for ; Wed, 27 Mar 2013 10:22:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753603Ab3C0KWY (ORCPT ); Wed, 27 Mar 2013 06:22:24 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:58332 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752683Ab3C0KWY (ORCPT ); Wed, 27 Mar 2013 06:22:24 -0400 Received: by mail-wi0-f169.google.com with SMTP id c10so2131062wiw.2 for ; Wed, 27 Mar 2013 03:22:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=cSsjUBvWl03VpxABhId+lZPD01Qt2ZOpHZoIUYiyFIs=; b=iMBEIXBtDHTQPpU/Zr7gBs7Hy9CThqit+RzjfzmMblNEKFzh/fYT3eo/3ADgGe5QKi Nxd1QmuPr+x7+ea2bH12/0O8vKIxOmlk7OjCerkbD0WNVlVR5hfxx3+z32cpuQwthpX4 yQ4GIHakU59xj7oYgUSUNH5eGJfS0ytaAl2GBhiPe8M3jrd5vsvOT5O3SfU7XpHujppD NOwNVYOnsBT4IKIJE8ynkJRp/bxQI1p8BzMVg/YDSromVUYUvjugELOrN26tlMUOd3Es 3TbdCPxeWKl8nCDLKgzM+imdhxGuNEThjuP9YCibr2fXfIz5OLi0Kn8qlCvAEaGhwcah IPEA== 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: ALoCoQktHaOAKkFJa0Jb6JdHZoM9GOiorLG5Uxvryo61Lv3Dex2TFqqLrnWhR7k/6rh3JOdwBL1Q Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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");