From 6d8f2d0e93228a1aaecace14eb345fe1224b211f Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 22 Aug 2021 13:06:26 +0200 Subject: process_switch_any: deduplicate some code --- src/kernel/proc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/kernel/proc.h') diff --git a/src/kernel/proc.h b/src/kernel/proc.h index 2f39f2e..c2dfde4 100644 --- a/src/kernel/proc.h +++ b/src/kernel/proc.h @@ -34,5 +34,6 @@ extern struct process *process_current; struct process *process_seed(); struct process *process_fork(struct process *parent); _Noreturn void process_switch(struct process *proc); +_Noreturn void process_switch_any(); // switches to any running process struct process *process_find(enum process_state); -- cgit v1.2.3