serial: change timeout for KeDelayExecutionThread
Zero interval makes KeDelayExecutionThread to call NtYieldExecution with
minimal additional actions, but it is not documented. It is changed to minimal relative
interval value (-1).
@@ -49,7 +49,8 @@ VIOSerialSendCtrlMsg(
virtqueue_kick(vq);
while(!virtqueue_get_buf(vq, &len))
{
- LARGE_INTEGER interval = {0};
+ LARGE_INTEGER interval;
+ interval.QuadPart = -1;
KeDelayExecutionThread(KernelMode, FALSE, &interval);
}
}
