From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753545AbbDAWI2 (ORCPT ); Wed, 1 Apr 2015 18:08:28 -0400 Received: from v094114.home.net.pl ([79.96.170.134]:50102 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752710AbbDAWD1 (ORCPT ); Wed, 1 Apr 2015 18:03:27 -0400 From: "Rafael J. Wysocki" To: Peter Zijlstra Cc: Thomas Gleixner , Ingo Molnar , Linux PM list , Linux Kernel Mailing List , ACPI Devel Maling List , Stephen Warren , Thierry Reding , Alexandre Courbot Subject: [PATCH 15/20] ARM: tegra: Use explicit broadcast oneshot control function Date: Thu, 02 Apr 2015 00:21:28 +0200 Message-ID: <1478824.iDGgpniXH1@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/3.19.0+; KDE/4.11.5; x86_64; ; ) In-Reply-To: <2112147.0kYCHhbEJT@vostro.rjw.lan> References: <2112147.0kYCHhbEJT@vostro.rjw.lan> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Gleixner Replace the clockevents_notify() call with an explicit function call. Signed-off-by: Thomas Gleixner Cc: Stephen Warren Cc: Thierry Reding Cc: Alexandre Courbot Signed-off-by: Rafael J. Wysocki --- arch/arm/mach-tegra/cpuidle-tegra114.c | 6 +++--- arch/arm/mach-tegra/cpuidle-tegra20.c | 10 +++++----- arch/arm/mach-tegra/cpuidle-tegra30.c | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-) Index: linux-pm/arch/arm/mach-tegra/cpuidle-tegra114.c =================================================================== --- linux-pm.orig/arch/arm/mach-tegra/cpuidle-tegra114.c +++ linux-pm/arch/arm/mach-tegra/cpuidle-tegra114.c @@ -15,7 +15,7 @@ */ #include -#include +#include #include #include #include @@ -44,7 +44,7 @@ static int tegra114_idle_power_down(stru tegra_set_cpu_in_lp2(); cpu_pm_enter(); - clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &dev->cpu); + tick_broadcast_enter(); call_firmware_op(prepare_idle); @@ -52,7 +52,7 @@ static int tegra114_idle_power_down(stru if (call_firmware_op(do_idle, 0) == -ENOSYS) cpu_suspend(0, tegra30_sleep_cpu_secondary_finish); - clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_EXIT, &dev->cpu); + tick_broadcast_exit(); cpu_pm_exit(); tegra_clear_cpu_in_lp2(); Index: linux-pm/arch/arm/mach-tegra/cpuidle-tegra20.c =================================================================== --- linux-pm.orig/arch/arm/mach-tegra/cpuidle-tegra20.c +++ linux-pm/arch/arm/mach-tegra/cpuidle-tegra20.c @@ -20,7 +20,7 @@ */ #include -#include +#include #include #include #include @@ -135,11 +135,11 @@ static bool tegra20_cpu_cluster_power_do if (tegra20_reset_cpu_1() || !tegra_cpu_rail_off_ready()) return false; - clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &dev->cpu); + tick_broadcast_enter(); tegra_idle_lp2_last(); - clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_EXIT, &dev->cpu); + tick_broadcast_exit(); if (cpu_online(1)) tegra20_wake_cpu1_from_reset(); @@ -152,13 +152,13 @@ static bool tegra20_idle_enter_lp2_cpu_1 struct cpuidle_driver *drv, int index) { - clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &dev->cpu); + tick_broadcast_enter(); cpu_suspend(0, tegra20_sleep_cpu_secondary_finish); tegra20_cpu_clear_resettable(); - clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_EXIT, &dev->cpu); + tick_broadcast_exit(); return true; } Index: linux-pm/arch/arm/mach-tegra/cpuidle-tegra30.c =================================================================== --- linux-pm.orig/arch/arm/mach-tegra/cpuidle-tegra30.c +++ linux-pm/arch/arm/mach-tegra/cpuidle-tegra30.c @@ -20,7 +20,7 @@ */ #include -#include +#include #include #include #include @@ -75,11 +75,11 @@ static bool tegra30_cpu_cluster_power_do return false; } - clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &dev->cpu); + tick_broadcast_enter(); tegra_idle_lp2_last(); - clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_EXIT, &dev->cpu); + tick_broadcast_exit(); return true; } @@ -89,13 +89,13 @@ static bool tegra30_cpu_core_power_down( struct cpuidle_driver *drv, int index) { - clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &dev->cpu); + tick_broadcast_enter(); smp_wmb(); cpu_suspend(0, tegra30_sleep_cpu_secondary_finish); - clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_EXIT, &dev->cpu); + tick_broadcast_exit(); return true; }