mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
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:
committed by
Xiang Xiao
parent
a286287f4e
commit
b3314b3813
@@ -38,7 +38,7 @@
|
|||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#define VHOST_DEFERED_PROBE_PERIOD 100
|
#define VHOST_DEFERED_PROBE_PERIOD MSEC2TICK(100)
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Types
|
* Private Types
|
||||||
|
|||||||
Reference in New Issue
Block a user