mirror of
https://github.com/apache/nuttx.git
synced 2026-10-07 06:15:20 +00: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:
parent
a286287f4e
commit
b3314b3813
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@
|
|||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
#define VHOST_DEFERED_PROBE_PERIOD 100
|
||||
#define VHOST_DEFERED_PROBE_PERIOD MSEC2TICK(100)
|
||||
|
||||
/****************************************************************************
|
||||
* Private Types
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue