XHCI: Increase priorities of the event and finish threads.

The "event" thread is what is woken up after interrupts, and
the "finish" thread handles the results of the "event" thread,
so prioritize them accordingly. Probably increases responsiveness
of USB input and disk devices visibly on heavily loaded systems.
This commit is contained in:
Augustin Cavalier 2019-07-13 23:18:23 -04:00
parent f1e99f1667
commit 4a6a2fbfda

View File

@ -361,12 +361,12 @@ XHCI::XHCI(pci_info *info, Stack *stack)
// create finisher service thread
fFinishThread = spawn_kernel_thread(FinishThread, "xhci finish thread",
B_NORMAL_PRIORITY, (void *)this);
B_URGENT_PRIORITY, (void *)this);
resume_thread(fFinishThread);
// create finisher service thread
fEventThread = spawn_kernel_thread(EventThread, "xhci event thread",
B_NORMAL_PRIORITY, (void *)this);
B_URGENT_DISPLAY_PRIORITY, (void *)this);
resume_thread(fEventThread);
// Find the right interrupt vector, using MSIs if available.