From 19114bcaefe8dd99c8900a0cc7e98fa01a01278c Mon Sep 17 00:00:00 2001 From: Edgaru089 Date: Thu, 11 Nov 2021 02:27:32 +0800 Subject: [PATCH] smp: set scheduler interval from 8 to 4 ticks --- smp/kthread_switch_asm.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smp/kthread_switch_asm.S b/smp/kthread_switch_asm.S index 09c6a2a..e252701 100644 --- a/smp/kthread_switch_asm.S +++ b/smp/kthread_switch_asm.S @@ -62,7 +62,7 @@ __smp_IntSwitch: mov rax, [__smp_Now] inc rax mov [__smp_Now], rax - test rax, 0x7 + test rax, 0x3 jz .realcall mov rax, [__smp_IntSwitch_LastState] iret