Skip to content

Commit 7bc54b6

Browse files
KAGA-KOKOIngo Molnar
authored andcommitted
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 <[email protected]> Reviewed-by: Frederic Weisbecker <[email protected]> Cc: Arjan van de Ven <[email protected]> Cc: Chris Mason <[email protected]> Cc: Eric Dumazet <[email protected]> Cc: George Spelvin <[email protected]> Cc: Josh Triplett <[email protected]> Cc: Len Brown <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Paul E. McKenney <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Rik van Riel <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent f9c287b commit 7bc54b6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/cpufreq/powernv-cpufreq.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -530,8 +530,7 @@ static inline void queue_gpstate_timer(struct global_pstate_info *gpstates)
530530
else
531531
timer_interval = GPSTATE_TIMER_INTERVAL;
532532

533-
mod_timer_pinned(&gpstates->timer, jiffies +
534-
msecs_to_jiffies(timer_interval));
533+
mod_timer(&gpstates->timer, jiffies + msecs_to_jiffies(timer_interval));
535534
}
536535

537536
/**
@@ -699,7 +698,7 @@ static int powernv_cpufreq_cpu_init(struct cpufreq_policy *policy)
699698
policy->driver_data = gpstates;
700699

701700
/* initialize timer */
702-
init_timer_deferrable(&gpstates->timer);
701+
init_timer_pinned_deferrable(&gpstates->timer);
703702
gpstates->timer.data = (unsigned long)policy;
704703
gpstates->timer.function = gpstate_timer_handler;
705704
gpstates->timer.expires = jiffies +

0 commit comments

Comments
 (0)