diff options
author | Ian Moffett <ian@osmora.org> | 2024-05-21 11:40:32 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-05-21 12:40:10 -0400 |
commit | 600403a8666da95c8a9e99497b93825cce63c750 (patch) | |
tree | 8786da4813fd0ea47ef778120812bf19effb3f0f /sys/arch/amd64/amd64 | |
parent | ccfba09b7a23632b6a8c1d8731fcdbf778e148b1 (diff) |
kernel: Initial sched rewrite
- Introduce dynamic scheduling policy
- Introduce MLFQ scheduling
- Clean up a lot of code
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch/amd64/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/cpu_mp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/arch/amd64/amd64/cpu_mp.c b/sys/arch/amd64/amd64/cpu_mp.c index 7b95196..2afdd43 100644 --- a/sys/arch/amd64/amd64/cpu_mp.c +++ b/sys/arch/amd64/amd64/cpu_mp.c @@ -51,18 +51,15 @@ static bool is_mp_supported = false; static void ap_trampoline(struct limine_smp_info *si) { - struct cpu_info *ci; static struct spinlock lock = {0}; spinlock_acquire(&lock); - ci = (void *)si->extra_argument; pre_init(); processor_init(); spinlock_release(&lock); - - sched_init_processor(ci); + sched_enter(); /* Should not be reached */ __assert(0); |