XHCI: Tweak priorities a bit more.

Put the EventThread as URGENT_PRIORITY and the downstream FinishThread
as URGENT - 1. Hopefully this will serve as a better hint to the
scheduler as to what we want to occur here.
This commit is contained in:
Augustin Cavalier
2019-07-14 14:27:30 -04:00
parent 17c9e98743
commit c8375b0017
+6 -6
View File
@@ -359,15 +359,15 @@ XHCI::XHCI(pci_info *info, Stack *stack)
return; return;
} }
// create finisher service thread // create event handler thread
fFinishThread = spawn_kernel_thread(FinishThread, "xhci finish thread", fEventThread = spawn_kernel_thread(EventThread, "xhci event thread",
B_URGENT_PRIORITY, (void *)this); B_URGENT_PRIORITY, (void *)this);
resume_thread(fFinishThread); resume_thread(fEventThread);
// create finisher service thread // create finisher service thread
fEventThread = spawn_kernel_thread(EventThread, "xhci event thread", fFinishThread = spawn_kernel_thread(FinishThread, "xhci finish thread",
B_URGENT_DISPLAY_PRIORITY, (void *)this); B_URGENT_PRIORITY - 1, (void *)this);
resume_thread(fEventThread); resume_thread(fFinishThread);
// Find the right interrupt vector, using MSIs if available. // Find the right interrupt vector, using MSIs if available.
fIRQ = fPCIInfo->u.h0.interrupt_line; fIRQ = fPCIInfo->u.h0.interrupt_line;