Skip to contentSkip to conversation

sparc64: Convert timers to user timer_setup()

PATCH New Allen Pais 1 participant 1 message Oct 24, 2017 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

Allen Pais

author
#0 lore raw

PATCH 1/1 sparc64: Convert timers to user timer_setup()

Switch to using the new timer_setup() and from_timer() in LDOM Virtual I/O handshake.

---
 arch/sparc/kernel/viohs.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/sparc/kernel/viohs.c +3 -3
index dcd278f..7cb27c2 100644
@@ -797,9 +797,9 @@ void vio_port_up(struct vio_driver_state *vio)
 }
 EXPORT_SYMBOL(vio_port_up);
 
-static void vio_port_timer(unsigned long _arg)
+static void vio_port_timer(struct timer_list *t)
 {
-	struct vio_driver_state *vio = (struct vio_driver_state *) _arg;
+	struct vio_driver_state *vio = from_timer(vio, t, timer);
 
 	vio_port_up(vio);
 }
@@ -848,7 +848,7 @@ int vio_driver_init(struct vio_driver_state *vio, struct vio_dev *vdev,
 
 	vio->ops = ops;
 
-	setup_timer(&vio->timer, vio_port_timer, (unsigned long) vio);
+	timer_setup(&vio->timer, vio_port_timer, 0);
 
 	return 0;
 }
Signature · 1 line
1.9.1