From aeebe83b0a8fbfa39f84aa714855b61fc4bab043 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 19 Nov 2025 17:49:12 -0500 Subject: kern: proc: Add enhanced processor arbitration Unlike the previouses systems where there was a global arbiter and a shared lock, rv7 derives a zero-based processor index by using the lower 8 bits of the pid MOD the core count. This significantly reduces contention. Signed-off-by: Ian Moffett --- sys/inc/os/process.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/inc/os/process.h') diff --git a/sys/inc/os/process.h b/sys/inc/os/process.h index a2e3fdd..24db3e1 100644 --- a/sys/inc/os/process.h +++ b/sys/inc/os/process.h @@ -43,11 +43,13 @@ * system * * @pid: Process ID + * @affinity: Processor affinity * @pcb: Process control block * @link: Queue link */ struct process { pid_t pid; + id_t affinity; struct pcb pcb; TAILQ_ENTRY(process) link; }; -- cgit v1.2.3