From d4862de86a51402720a4896e37a7548bb1d42b37 Mon Sep 17 00:00:00 2001 From: Vasiliy Stelmachenok Date: Tue, 18 Jun 2024 15:27:56 +0300 Subject: [PATCH] pci-latency: Replace sudo with root checks This speeds up startup of the systemd service from 40ms -> 18ms --- usr/bin/pci-latency | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr/bin/pci-latency b/usr/bin/pci-latency index ed1dbcc..7695019 100755 --- a/usr/bin/pci-latency +++ b/usr/bin/pci-latency @@ -6,7 +6,11 @@ # devices, which can help prevent devices with high default latency timers from # causing gaps in sound. -sudo -s -- <