From: Jesse Brandeburg Date: Thu, 31 Aug 2006 21:27:50 +0000 (-0700) Subject: ixgb: Set a constant blink rate for ixgb adapter identify (1sec on, 1sec off) X-Git-Tag: v2.6.19-rc1~1263^2~64^2~6 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a91bb6a8b411bdd8053601d7c2254d54670a4df6;p=karo-tx-linux.git ixgb: Set a constant blink rate for ixgb adapter identify (1sec on, 1sec off) Signed-off-by: Jesse Brandeburg Signed-off-by: Auke Kok --- diff --git a/drivers/net/ixgb/ixgb_ethtool.c b/drivers/net/ixgb/ixgb_ethtool.c index cf19b898ba9b..ba621083830a 100644 --- a/drivers/net/ixgb/ixgb_ethtool.c +++ b/drivers/net/ixgb/ixgb_ethtool.c @@ -654,11 +654,7 @@ ixgb_phys_id(struct net_device *netdev, uint32_t data) mod_timer(&adapter->blink_timer, jiffies); - if (data) - schedule_timeout_interruptible(data * HZ); - else - schedule_timeout_interruptible(MAX_SCHEDULE_TIMEOUT); - + msleep_interruptible(data * 1000); del_timer_sync(&adapter->blink_timer); ixgb_led_off(&adapter->hw); clear_bit(IXGB_LED_ON, &adapter->led_status);