X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=net%2Fappletalk%2Faarp.c;h=f3777ec5bcb988bc9d33cb332aa96dc0dbeebd7d;hb=0d1782144e81faf6203075c5fcd0a2f0db91af5b;hp=10d040461021271e127e28d3bea365ababc6c037;hpb=ff40c6d3d1437ecdf295b8e39adcb06c3d6021ef;p=linux-2.6-omap-h63xx.git diff --git a/net/appletalk/aarp.c b/net/appletalk/aarp.c index 10d04046102..f3777ec5bcb 100644 --- a/net/appletalk/aarp.c +++ b/net/appletalk/aarp.c @@ -29,12 +29,12 @@ * */ -#include #include #include #include #include #include +#include #include #include #include @@ -462,8 +462,7 @@ void aarp_probe_network(struct atalk_iface *atif) aarp_send_probe(atif->dev, &atif->address); /* Defer 1/10th */ - current->state = TASK_INTERRUPTIBLE; - schedule_timeout(HZ / 10); + msleep(100); if (atif->status & ATIF_PROBE_FAIL) break; @@ -510,9 +509,8 @@ int aarp_proxy_probe_network(struct atalk_iface *atif, struct atalk_addr *sa) aarp_send_probe(atif->dev, sa); /* Defer 1/10th */ - current->state = TASK_INTERRUPTIBLE; write_unlock_bh(&aarp_lock); - schedule_timeout(HZ / 10); + msleep(100); write_lock_bh(&aarp_lock); if (entry->status & ATIF_PROBE_FAIL) @@ -699,7 +697,7 @@ static void __aarp_resolved(struct aarp_entry **list, struct aarp_entry *a, * frame. We currently only support Ethernet. */ static int aarp_rcv(struct sk_buff *skb, struct net_device *dev, - struct packet_type *pt) + struct packet_type *pt, struct net_device *orig_dev) { struct elapaarp *ea = aarp_hdr(skb); int hash, ret = 0;