]> git.baikalelectronics.ru Git - kernel.git/commit
liquidio: make timeout HZ independent and readable
authorNicholas Mc Guire <hofrat@osadl.org>
Mon, 2 Jul 2018 18:13:15 +0000 (20:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Jul 2018 02:06:59 +0000 (11:06 +0900)
commit799d7729b43a92d3d7d51741ac1437e8d6f181df
treeadcc4e72c180cda124ddfbf7330cc01d04923646
parentb0ffd71354553918e4e11a91dadc5e0416769341
liquidio: make timeout HZ independent and readable

schedule_timeout_* takes a timeout in jiffies but the code currently is
passing in a constant which makes this timeout HZ dependent. So define
a constant with (hopefully) meaningful name and pass it through
msecs_to_jiffies() to fix the HZ dependency.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
commit 3fbbaec12d26 ("Add support of Cavium Liquidio ethernet adapters")
Acked-by: Derek Chickles <derek.chickles@caviumnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_main.c