From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030591AbcGGIl5 (ORCPT ); Thu, 7 Jul 2016 04:41:57 -0400 Received: from terminus.zytor.com ([198.137.202.10]:38990 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030282AbcGGIlx (ORCPT ); Thu, 7 Jul 2016 04:41:53 -0400 Date: Thu, 7 Jul 2016 01:41:11 -0700 From: tip-bot for Thomas Gleixner Message-ID: Cc: peterz@infradead.org, riel@redhat.com, arjan@infradead.org, clm@fb.com, mingo@kernel.org, torvalds@linux-foundation.org, edumazet@google.com, fweisbec@gmail.com, linux@sciencehorizons.net, lenb@kernel.org, hpa@zytor.com, josh@joshtriplett.org, paulmck@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, tglx@linutronix.de Reply-To: tglx@linutronix.de, linux-kernel@vger.kernel.org, paulmck@linux.vnet.ibm.com, lenb@kernel.org, hpa@zytor.com, josh@joshtriplett.org, arjan@infradead.org, clm@fb.com, edumazet@google.com, torvalds@linux-foundation.org, mingo@kernel.org, linux@sciencehorizons.net, fweisbec@gmail.com, peterz@infradead.org, riel@redhat.com In-Reply-To: <20160704094341.297014487@linutronix.de> References: <20160704094341.297014487@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:timers/core] timers, cpufreq/powernv: Initialize the gpstate timer as pinned Git-Commit-ID: 7bc54b652f13119f64e87dd96bb792efbfc5a786 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: 7bc54b652f13119f64e87dd96bb792efbfc5a786 Gitweb: http://git.kernel.org/tip/7bc54b652f13119f64e87dd96bb792efbfc5a786 Author: Thomas Gleixner AuthorDate: Mon, 4 Jul 2016 09:50:18 +0000 Committer: Ingo Molnar CommitDate: Thu, 7 Jul 2016 10:25:14 +0200 timers, cpufreq/powernv: Initialize the gpstate timer as pinned Pinned timers must carry the pinned attribute in the timer structure itself, so convert the code to the new API. No functional change. Signed-off-by: Thomas Gleixner Reviewed-by: Frederic Weisbecker Cc: Arjan van de Ven Cc: Chris Mason Cc: Eric Dumazet Cc: George Spelvin Cc: Josh Triplett Cc: Len Brown Cc: Linus Torvalds Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Rik van Riel Cc: rt@linutronix.de Link: http://lkml.kernel.org/r/20160704094341.297014487@linutronix.de Signed-off-by: Ingo Molnar --- drivers/cpufreq/powernv-cpufreq.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/cpufreq/powernv-cpufreq.c b/drivers/cpufreq/powernv-cpufreq.c index 54c4536..6bd715b 100644 --- a/drivers/cpufreq/powernv-cpufreq.c +++ b/drivers/cpufreq/powernv-cpufreq.c @@ -530,8 +530,7 @@ static inline void queue_gpstate_timer(struct global_pstate_info *gpstates) else timer_interval = GPSTATE_TIMER_INTERVAL; - mod_timer_pinned(&gpstates->timer, jiffies + - msecs_to_jiffies(timer_interval)); + mod_timer(&gpstates->timer, jiffies + msecs_to_jiffies(timer_interval)); } /** @@ -699,7 +698,7 @@ static int powernv_cpufreq_cpu_init(struct cpufreq_policy *policy) policy->driver_data = gpstates; /* initialize timer */ - init_timer_deferrable(&gpstates->timer); + init_timer_pinned_deferrable(&gpstates->timer); gpstates->timer.data = (unsigned long)policy; gpstates->timer.function = gpstate_timer_handler; gpstates->timer.expires = jiffies +