]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
8139cp: safer spin loop for get_statistics
authorStephen Hemminger <shemminger@osdl.org>
Sun, 26 Jun 2005 22:02:44 +0000 (18:02 -0400)
committerJeff Garzik <jgarzik@pobox.com>
Sun, 26 Jun 2005 22:02:44 +0000 (18:02 -0400)
commit97f568d8e3dc031b092e6086c0534d5411fb2cf5
tree626d9dd89a55cc7515b5c1f070acceb82a72f7a6
parent223d47278a77091b62e7d063e95860f63ca55e20
8139cp: safer spin loop for get_statistics

The spin loop in 8139cp is limited to 100 iterations when pulling hardware
stats. There is no allowance for processor speed so on a fast machine, the
stats may not be available that fast. Also, if the board doesn't return
soon enough make sure turn the address back off to prevent later updates
when memory has gone away.
drivers/net/8139cp.c