Add a should_invoke_scheduler method

This commit is contained in:
apio 2022-12-07 12:15:30 +01:00
parent beab3454b5
commit 56205a4a2f
Signed by: apio
GPG Key ID: B8A7D06E42258954
2 changed files with 8 additions and 1 deletions

View File

@ -127,3 +127,8 @@ namespace Timer
arch_init();
}
}
bool should_invoke_scheduler()
{
return (timer_ticks % ARCH_TIMER_FREQ) == 0;
}

View File

@ -35,3 +35,5 @@ namespace Timer
void arch_init();
void init();
}
bool should_invoke_scheduler();