Skip to content

Commit 376f3bc

Browse files
keesKAGA-KOKO
authored andcommitted
x86/platform/UV: Convert timers to use timer_setup()
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: Dimitri Sivanich <[email protected]> Cc: Russ Anderson <[email protected]> Cc: Mike Travis <[email protected]> Link: https://lkml.kernel.org/r/20171016232231.GA100493@beast
1 parent 33d930e commit 376f3bc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

arch/x86/kernel/apic/x2apic_uv_x.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -920,9 +920,8 @@ static __init void uv_rtc_init(void)
920920
/*
921921
* percpu heartbeat timer
922922
*/
923-
static void uv_heartbeat(unsigned long ignored)
923+
static void uv_heartbeat(struct timer_list *timer)
924924
{
925-
struct timer_list *timer = &uv_scir_info->timer;
926925
unsigned char bits = uv_scir_info->state;
927926

928927
/* Flip heartbeat bit: */
@@ -947,7 +946,7 @@ static int uv_heartbeat_enable(unsigned int cpu)
947946
struct timer_list *timer = &uv_cpu_scir_info(cpu)->timer;
948947

949948
uv_set_cpu_scir_bits(cpu, SCIR_CPU_HEARTBEAT|SCIR_CPU_ACTIVITY);
950-
setup_pinned_timer(timer, uv_heartbeat, cpu);
949+
timer_setup(timer, uv_heartbeat, TIMER_PINNED);
951950
timer->expires = jiffies + SCIR_CPU_HB_INTERVAL;
952951
add_timer_on(timer, cpu);
953952
uv_cpu_scir_info(cpu)->enabled = 1;

0 commit comments

Comments
 (0)