Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sparc64: Convert timers to user timer_setup()

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

Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Allen Pais and committed by
David S. Miller
ff029687 cdf5976f

+3 -3
+3 -3
arch/sparc/kernel/viohs.c
··· 797 797 } 798 798 EXPORT_SYMBOL(vio_port_up); 799 799 800 - static void vio_port_timer(unsigned long _arg) 800 + static void vio_port_timer(struct timer_list *t) 801 801 { 802 - struct vio_driver_state *vio = (struct vio_driver_state *) _arg; 802 + struct vio_driver_state *vio = from_timer(vio, t, timer); 803 803 804 804 vio_port_up(vio); 805 805 } ··· 848 848 849 849 vio->ops = ops; 850 850 851 - setup_timer(&vio->timer, vio_port_timer, (unsigned long) vio); 851 + timer_setup(&vio->timer, vio_port_timer, 0); 852 852 853 853 return 0; 854 854 }