From b3314b3813c363d5de7dc6cfcb1d35603b535bb7 Mon Sep 17 00:00:00 2001 From: Yongrong Wang Date: Mon, 7 Apr 2025 15:44:46 +0800 Subject: [PATCH] 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 --- drivers/vhost/vhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index b41bc5abb72..65ad5d79551 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -38,7 +38,7 @@ * Pre-processor Definitions ****************************************************************************/ -#define VHOST_DEFERED_PROBE_PERIOD 100 +#define VHOST_DEFERED_PROBE_PERIOD MSEC2TICK(100) /**************************************************************************** * Private Types