drivers/vhost: use MSEC2TICK for deferred probe period

Convert VHOST_DEFERED_PROBE_PERIOD from a raw value to use MSEC2TICK()
macro, ensuring the delay is correctly converted from milliseconds to
system ticks regardless of the configured tick rate.

Signed-off-by: Yongrong Wang <wangyongrong@xiaomi.com>
This commit is contained in:
Yongrong Wang 2025-04-07 15:44:46 +08:00 • committed by Xiang Xiao
parent a286287f4e
commit b3314b3813

View file

@ -38,7 +38,7 @@
* Pre-processor Definitions
****************************************************************************/
#define VHOST_DEFERED_PROBE_PERIOD 100
#define VHOST_DEFERED_PROBE_PERIOD MSEC2TICK(100)
/****************************************************************************
* Private Types