Skip to content

Commit

Permalink
tlan: msecs_to_jiffies convrsion
Browse files Browse the repository at this point in the history
This is only an API consolidation and should make things more readable
it replaces var * HZ / 1000 by msecs_to_jiffies(var).

As there is a discrepancy between the code and the comments this is in
a separate patch.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Nicholas Mc Guire authored and David S. Miller committed Feb 4, 2015
1 parent 51fd947 commit b5057dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/ti/tlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2561,7 +2561,7 @@ static void tlan_phy_power_up(struct net_device *dev)
* transceiver. The TLAN docs say both 50 ms and
* 500 ms, so do the longer, just in case.
*/
tlan_set_timer(dev, (HZ/20), TLAN_TIMER_PHY_RESET);
tlan_set_timer(dev, msecs_to_jiffies(500), TLAN_TIMER_PHY_RESET);

}

Expand Down

0 comments on commit b5057dd

Please sign in to comment.