diff options
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r-- | drivers/net/sfc/ethtool.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/sfc/ethtool.c b/drivers/net/sfc/ethtool.c index cd92c4d8dbc5..9c533e036a00 100644 --- a/drivers/net/sfc/ethtool.c +++ b/drivers/net/sfc/ethtool.c | |||
@@ -182,12 +182,16 @@ static struct efx_ethtool_stat efx_ethtool_stats[] = { | |||
182 | */ | 182 | */ |
183 | 183 | ||
184 | /* Identify device by flashing LEDs */ | 184 | /* Identify device by flashing LEDs */ |
185 | static int efx_ethtool_phys_id(struct net_device *net_dev, u32 seconds) | 185 | static int efx_ethtool_phys_id(struct net_device *net_dev, u32 count) |
186 | { | 186 | { |
187 | struct efx_nic *efx = netdev_priv(net_dev); | 187 | struct efx_nic *efx = netdev_priv(net_dev); |
188 | 188 | ||
189 | efx->board_info.blink(efx, 1); | 189 | efx->board_info.blink(efx, 1); |
190 | schedule_timeout_interruptible(seconds * HZ); | 190 | set_current_state(TASK_INTERRUPTIBLE); |
191 | if (count) | ||
192 | schedule_timeout(count * HZ); | ||
193 | else | ||
194 | schedule(); | ||
191 | efx->board_info.blink(efx, 0); | 195 | efx->board_info.blink(efx, 0); |
192 | return 0; | 196 | return 0; |
193 | } | 197 | } |