History

tlan: msecs_to_jiffies convrsion

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.

Nicholas Mc Guire committed 11 years ago

Commit b5057dd1 parent 51fd9471 file · +1 −1Browse files

Unified · Split

drivers/net/ethernet/ti/tlan.c+1−1
@@ -2561,7 +2561,7 @@ static void tlan_phy_power_up(struct net_device *dev) · 2560 unmodified lines
25612561 * transceiver. The TLAN docs say both 50 ms and
25622562 * 500 ms, so do the longer, just in case.
25632563 */
2564− tlan_set_timer(dev, (HZ/20), TLAN_TIMER_PHY_RESET);
2564+ tlan_set_timer(dev, msecs_to_jiffies(500), TLAN_TIMER_PHY_RESET);
25652565
25662566 }
25672567