ia64/xen-unstable

changeset 9069:8ac43508b33b

Avoid using unexported add_timer_on() function in netback driver.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue Feb 28 18:15:18 2006 +0100 (2006-02-28)
parents c369d960f96b
children ead0b7fcad3a
files linux-2.6-xen-sparse/drivers/xen/netback/netback.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/netback/netback.c	Tue Feb 28 17:45:20 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netback/netback.c	Tue Feb 28 18:15:18 2006 +0100
     1.3 @@ -505,14 +505,12 @@ static void net_tx_action(unsigned long 
     1.4  			/* Still too big to send right now? Set a callback. */
     1.5  			if (txreq.size > netif->remaining_credit) {
     1.6  				netif->remaining_credit = 0;
     1.7 -				netif->credit_timeout.expires  = 
     1.8 -					next_credit;
     1.9  				netif->credit_timeout.data     =
    1.10  					(unsigned long)netif;
    1.11  				netif->credit_timeout.function =
    1.12  					tx_credit_callback;
    1.13 -				add_timer_on(&netif->credit_timeout,
    1.14 -					     smp_processor_id());
    1.15 +				__mod_timer(&netif->credit_timeout,
    1.16 +					    next_credit);
    1.17  				break;
    1.18  			}
    1.19  		}