mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-01 03:45:29 +00:00
mainly focus on: like U/UL as unsigned suffix; char and int mix usage; also change some function's params for data type consistent. Signed-off-by: Minggui Cao <minggui.cao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
18 lines
282 B
C
18 lines
282 B
C
/*
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <hv_lib.h>
|
|
|
|
void mdelay(uint32_t loop_count)
|
|
{
|
|
/* Loop until done */
|
|
while (loop_count != 0U) {
|
|
/* Delay for 1 ms */
|
|
udelay(1000U);
|
|
loop_count--;
|
|
}
|
|
}
|