ke/sched: add hard affinity cpumask

This commit is contained in:
Loïc Grégoire
2026-08-20 21:19:50 -04:00
parent 3204a5de6b
commit f6f20599ba
2 changed files with 40 additions and 26 deletions
+2
View File
@@ -131,6 +131,7 @@ pub const Thread = struct {
/// to complete.
switching: std.atomic.Value(bool),
smr_sections: rtl.List,
hard_affinity: ke.CpuMask,
/// Initialize a thread.
/// - `stack`: Address of the base of the stack used by the thread.
@@ -180,6 +181,7 @@ pub const Thread = struct {
.avg = .{},
.acct = .{},
.smr_sections = undefined,
.hard_affinity = .init(true),
};
thread.turnstiles_owned.init();