aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan, Bruce W <bruce.w.allan@intel.com>2011-04-11 09:01:59 -0400
committerDavid S. Miller <davem@davemloft.net>2011-04-12 16:47:33 -0400
commit143780c6562080c1117cd9197ee1b33c0d838376 (patch)
tree2c917395174066a85ea138377993e3a0fd45e7fb
parent6ba1037c3d871ab70e342631516dbf841c35b086 (diff)
ethtool: time to blink provided in seconds not jiffies
When blinking for a duration set by the user, the value specified is in seconds but it is used as the number of jiffies in the timeout after which the Physical ID indicator is deactivated. Fix by converting the timeout to seconds. Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Acked-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/core/ethtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/ethtool.c b/net/core/ethtool.c
index 704e176ad3a9..43ef09fedd6e 100644
--- a/net/core/ethtool.c
+++ b/net/core/ethtool.c
@@ -1653,7 +1653,7 @@ static int ethtool_phys_id(struct net_device *dev, void __user *useraddr)
1653 if (rc == 0) { 1653 if (rc == 0) {
1654 /* Driver will handle this itself */ 1654 /* Driver will handle this itself */
1655 schedule_timeout_interruptible( 1655 schedule_timeout_interruptible(
1656 id.data ? id.data : MAX_SCHEDULE_TIMEOUT); 1656 id.data ? (id.data * HZ) : MAX_SCHEDULE_TIMEOUT);
1657 } else { 1657 } else {
1658 /* Driver expects to be called periodically */ 1658 /* Driver expects to be called periodically */
1659 do { 1659 do {