Skip to content

Commit 8be1c1b

Browse files
kajusnaubrianmcgillion
authored andcommitted
scheduler: add patch to fix scheduler assignments
Signed-off-by: Kajus Naujokaitis <kajus.naujokaitis@unikie.com>
1 parent bb9f062 commit 8be1c1b

File tree

4 files changed

+41
-1
lines changed

4 files changed

+41
-1
lines changed

REUSE.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ path = [
3131
"overlays/custom-packages/cosmic/cosmic-comp/0001-Disable-VRR-by-default.patch",
3232
"overlays/custom-packages/cosmic/cosmic-initial-setup/0001-Preselect-Ghaf-themes.patch",
3333
"overlays/custom-packages/cosmic/cosmic-greeter/0001-Replace-fallback-background-with-Ghaf-default.patch",
34-
"overlays/custom-packages/cosmic/cosmic-applets/*.patch"
34+
"overlays/custom-packages/cosmic/cosmic-applets/*.patch",
35+
"overlays/custom-packages/system76-scheduler/0001-fix-add-missing-loop-in-process-scheduler-refresh-ta.patch"
3536
]
3637

3738
[[annotations]]

overlays/custom-packages/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
libfm = import ./libfm { inherit prev; };
2020
papirus-icon-theme = import ./papirus-icon-theme { inherit prev; };
2121
qemu_kvm = import ./qemu { inherit final prev; };
22+
system76-scheduler = import ./system76-scheduler { inherit prev; };
2223
tpm2-pkcs11 = import ./tpm2-pkcs11 { inherit prev; };
2324
tpm2-tools = import ./tpm2-tools { inherit prev; };
2425
xdg-desktop-portal-cosmic = import ./cosmic/xdg-desktop-portal-cosmic { inherit prev; };
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
From eddba4de430f72117f9557e8a0ed2efebbb1ca36 Mon Sep 17 00:00:00 2001
2+
From: Kajus Naujokaitis <kajusn@gmail.com>
3+
Date: Mon, 24 Nov 2025 16:20:36 +0200
4+
Subject: [PATCH] fix: add missing loop in process scheduler refresh task
5+
6+
Signed-off-by: Kajus Naujokaitis <kajusn@gmail.com>
7+
---
8+
daemon/src/main.rs | 7 +++++--
9+
1 file changed, 5 insertions(+), 2 deletions(-)
10+
11+
diff --git a/daemon/src/main.rs b/daemon/src/main.rs
12+
index 308f069..7124ae7 100644
13+
--- a/daemon/src/main.rs
14+
+++ b/daemon/src/main.rs
15+
@@ -189,8 +189,11 @@ async fn daemon(
16+
Duration::from_secs(u64::from(service.config.process_scheduler.refresh_rate));
17+
let tx = tx.clone();
18+
async move {
19+
- let _res = tx.send(Event::RefreshProcessMap).await;
20+
- tokio::time::sleep(refresh_rate).await;
21+
+ let mut interval = tokio::time::interval(refresh_rate);
22+
+ loop {
23+
+ interval.tick().await;
24+
+ let _ = tx.send(Event::RefreshProcessMap).await;
25+
+ }
26+
}
27+
});
28+
29+
--
30+
2.51.2
31+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# SPDX-FileCopyrightText: 2022-2026 TII (SSRC) and the Ghaf contributors
2+
# SPDX-License-Identifier: Apache-2.0
3+
{ prev }:
4+
5+
prev.system76-scheduler.overrideAttrs (_old: {
6+
patches = [ ./0001-fix-add-missing-loop-in-process-scheduler-refresh-ta.patch ];
7+
})

0 commit comments

Comments
 (0)