From fb1ffec5bbf7c6bbda81ee232ef9f5aa0705c812 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 22 Nov 2024 22:18:38 +0200 Subject: [PATCH] Kernel: Remove unused mutex from xHCI This was preventing multiple xHCI controllers to do parallel device initialization --- kernel/kernel/USB/XHCI/Controller.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kernel/kernel/USB/XHCI/Controller.cpp b/kernel/kernel/USB/XHCI/Controller.cpp index 032ea543..4d4ccebd 100644 --- a/kernel/kernel/USB/XHCI/Controller.cpp +++ b/kernel/kernel/USB/XHCI/Controller.cpp @@ -271,8 +271,6 @@ namespace Kernel return {}; } - static Mutex s_port_mutex; - void XHCIController::port_updater_task() { // allow initial pass of port iteration because controller @@ -293,8 +291,6 @@ namespace Kernel for (size_t i = 0; i < m_ports.size(); i++) { - LockGuard _(s_port_mutex); - auto& my_port = m_ports[i]; if (my_port.revision_major == 0) continue;