]> asedeno.scripts.mit.edu Git - linux.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)
commit7481a8576ad87ac92526a931c0cd5733db7c1250
treeadcc4e72c180cda124ddfbf7330cc01d04923646
parent38cd58ed9c4e389799b507bcffe02a7a7a180b33
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 f21fb3ed364b ("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