mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-22 13:37:10 +00:00
hv: timer: add debug information for add_timer
If a timer added more than once, assert the debug information. Tracked-On: #1546 Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
parent
7ca1a7de7d
commit
a43ff9ce98
@ -80,6 +80,8 @@ int add_timer(struct hv_timer *timer)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
ASSERT(list_empty(&timer->node), "add timer again!\n");
|
||||
|
||||
/* limit minimal periodic timer cycle period */
|
||||
if (timer->mode == TICK_MODE_PERIODIC) {
|
||||
timer->period_in_cycle = max(timer->period_in_cycle,
|
||||
|
Loading…
Reference in New Issue
Block a user