Skip to content

Commit 920a4a7

Browse files
KAGA-KOKOIngo Molnar
authored andcommitted
timers, x86/apic/uv: Initialize the UV heartbeat 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 e675447 commit 920a4a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kernel/apic/x2apic_uv_x.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ static void uv_heartbeat(unsigned long ignored)
919919
uv_set_scir_bits(bits);
920920

921921
/* enable next timer period */
922-
mod_timer_pinned(timer, jiffies + SCIR_CPU_HB_INTERVAL);
922+
mod_timer(timer, jiffies + SCIR_CPU_HB_INTERVAL);
923923
}
924924

925925
static void uv_heartbeat_enable(int cpu)
@@ -928,7 +928,7 @@ static void uv_heartbeat_enable(int cpu)
928928
struct timer_list *timer = &uv_cpu_scir_info(cpu)->timer;
929929

930930
uv_set_cpu_scir_bits(cpu, SCIR_CPU_HEARTBEAT|SCIR_CPU_ACTIVITY);
931-
setup_timer(timer, uv_heartbeat, cpu);
931+
setup_pinned_timer(timer, uv_heartbeat, cpu);
932932
timer->expires = jiffies + SCIR_CPU_HB_INTERVAL;
933933
add_timer_on(timer, cpu);
934934
uv_cpu_scir_info(cpu)->enabled = 1;

0 commit comments

Comments
 (0)