From patchwork Mon Mar 25 17:55:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 15612 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 429BD23E2C for ; Mon, 25 Mar 2013 17:55:49 +0000 (UTC) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by fiordland.canonical.com (Postfix) with ESMTP id F0B46A194BE for ; Mon, 25 Mar 2013 17:55:48 +0000 (UTC) Received: by mail-vc0-f169.google.com with SMTP id kw10so5029209vcb.0 for ; Mon, 25 Mar 2013 10:55:48 -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=nYodRTrtJEu6wcInHvI+uAxQWv/A+xtrOEmBT7LeSfSNto27ucnYpT3Xge352dgD2l wEZr0C4R6AVQ8KS2HDxK7JYcA4ElRmx9+U23G43nPLCWSqUhd71qVUWbQRuAzYae+6N2 XwjWnmoylKu/pfXcKARMQGNO5+1o0hjHmkQu9Z6ZKDQm3rCctw3/en/OaLHVUhcmHL5w jdi/5TALkF1sSQlKTrGzPhlpEsYm4r9KOqbIPatphBQoXq4DEfjUjbto+7yLUVk24LN8 DNjGZTnGtOXrOu4KQvxSUS7IwI35yCFExNb2sW4SBH0v0QhbEIUGA71tKp/lb4NajPXn WPng== X-Received: by 10.52.233.225 with SMTP id tz1mr14609397vdc.54.1364234148504; Mon, 25 Mar 2013 10:55:48 -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 cg12csp37223ved; Mon, 25 Mar 2013 10:55:48 -0700 (PDT) X-Received: by 10.194.235.196 with SMTP id uo4mr19690977wjc.30.1364234147489; Mon, 25 Mar 2013 10:55:47 -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 o8si5390201wjb.54.2013.03.25.10.55.47 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Mar 2013 10:55:47 -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 16so3369377wgi.3 for ; Mon, 25 Mar 2013 10:55:47 -0700 (PDT) X-Received: by 10.194.109.136 with SMTP id hs8mr19921826wjb.8.1364234146961; Mon, 25 Mar 2013 10:55:46 -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 s2sm23927749wib.4.2013.03.25.10.55.44 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Mar 2013 10:55:46 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl, tglx@linutronix.de Cc: patches@linaro.org, linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux@maxim.org.za, nicolas.ferre@atmel.com, plagnioj@jcrosoft.com, lenb@kernel.org, nsekhar@ti.com, kevin.hilman@linaro.org, horms@verge.net.au, magnus.damm@gmail.com, kernel@pengutronix.de, ben-linux@fluff.org, kgene.kim@samsung.com, rob.herring@calxeda.com, jason@lakedaemon.net, andrew@lunn.ch, linus.walleij@linaro.org, linux@arm.linux.org.uk Subject: [PATCH 03/15] cpuidle: ux500: remove timer broadcast initialization Date: Mon, 25 Mar 2013 18:55:28 +0100 Message-Id: <1364234140-514-4-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1364234140-514-1-git-send-email-daniel.lezcano@linaro.org> References: <1364234140-514-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQkwiwuPxb6jyOYS7/nvEEKkTUrU52qzkGuftlP5mjbT/ZKPahUfvd/MUsW2Fwko6GsqGDoE The initialization is done from the cpuidle framework. Signed-off-by: Daniel Lezcano Acked-by: Linus Walleij --- 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");