mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +00:00
HV:CPU: Add 'U/UL' for constant value in CPU module
There are unsinged constant values don't have 'U/UL' suffix in the HV reported by static analysis tool. Add 'U/UL' suffix for unsigned constant values as needed. Tracked-on: ccm0001001-247033 Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
@@ -723,7 +723,7 @@ void start_cpus()
|
||||
/* Wait until global count is equal to expected CPU up count or
|
||||
* configured time-out has expired
|
||||
*/
|
||||
timeout = CONFIG_CPU_UP_TIMEOUT * 1000;
|
||||
timeout = CONFIG_CPU_UP_TIMEOUT * 1000U;
|
||||
while ((up_count != expected_up) && (timeout != 0U)) {
|
||||
/* Delay 10us */
|
||||
udelay(10U);
|
||||
@@ -748,7 +748,7 @@ void stop_cpus()
|
||||
uint16_t pcpu_id, expected_up;
|
||||
uint32_t timeout;
|
||||
|
||||
timeout = CONFIG_CPU_UP_TIMEOUT * 1000;
|
||||
timeout = CONFIG_CPU_UP_TIMEOUT * 1000U;
|
||||
for (pcpu_id = 0U; pcpu_id < phys_cpu_num; pcpu_id++) {
|
||||
if (get_cpu_id() == pcpu_id) /* avoid offline itself */
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user