From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753581AbbDCIY2 (ORCPT ); Fri, 3 Apr 2015 04:24:28 -0400 Received: from terminus.zytor.com ([198.137.202.10]:44896 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752489AbbDCIXs (ORCPT ); Fri, 3 Apr 2015 04:23:48 -0400 Date: Fri, 3 Apr 2015 01:23:18 -0700 From: tip-bot for Thomas Gleixner Message-ID: Cc: peterz@infradead.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, rafael.j.wysocki@intel.com, hpa@zytor.com, lenb@kernel.org, mingo@kernel.org Reply-To: linux-kernel@vger.kernel.org, tglx@linutronix.de, rafael.j.wysocki@intel.com, peterz@infradead.org, mingo@kernel.org, lenb@kernel.org, hpa@zytor.com In-Reply-To: <3878165.rXNXrtVNuy@vostro.rjw.lan> References: <3878165.rXNXrtVNuy@vostro.rjw.lan> To: linux-tip-commits@vger.kernel.org Subject: [tip:timers/core] intel_idle: Use explicit broadcast control function Git-Commit-ID: 76962caa4b691ad09556903602143fc8b16802ae X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 76962caa4b691ad09556903602143fc8b16802ae Gitweb: http://git.kernel.org/tip/76962caa4b691ad09556903602143fc8b16802ae Author: Thomas Gleixner AuthorDate: Fri, 3 Apr 2015 02:02:34 +0200 Committer: Ingo Molnar CommitDate: Fri, 3 Apr 2015 08:44:32 +0200 intel_idle: Use explicit broadcast control function Replace the clockevents_notify() call with an explicit function call. Signed-off-by: Thomas Gleixner Signed-off-by: Rafael J. Wysocki Cc: Len Brown Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/3878165.rXNXrtVNuy@vostro.rjw.lan Signed-off-by: Ingo Molnar --- drivers/idle/intel_idle.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c index b0e5852..93f84f7 100644 --- a/drivers/idle/intel_idle.c +++ b/drivers/idle/intel_idle.c @@ -55,7 +55,7 @@ #include #include -#include +#include #include #include #include @@ -665,13 +665,12 @@ static void intel_idle_freeze(struct cpuidle_device *dev, static void __setup_broadcast_timer(void *arg) { - unsigned long reason = (unsigned long)arg; - int cpu = smp_processor_id(); - - reason = reason ? - CLOCK_EVT_NOTIFY_BROADCAST_ON : CLOCK_EVT_NOTIFY_BROADCAST_OFF; + unsigned long on = (unsigned long)arg; - clockevents_notify(reason, &cpu); + if (on) + tick_broadcast_enable(); + else + tick_broadcast_disable(); } static int cpu_hotplug_notify(struct notifier_block *n,