Add a should_invoke_scheduler method
This commit is contained in:
parent
beab3454b5
commit
56205a4a2f
@ -126,4 +126,9 @@ namespace Timer
|
|||||||
boot_timestamp = bootloader_time_to_unix(bootboot.datetime);
|
boot_timestamp = bootloader_time_to_unix(bootboot.datetime);
|
||||||
arch_init();
|
arch_init();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bool should_invoke_scheduler()
|
||||||
|
{
|
||||||
|
return (timer_ticks % ARCH_TIMER_FREQ) == 0;
|
||||||
}
|
}
|
@ -34,4 +34,6 @@ namespace Timer
|
|||||||
|
|
||||||
void arch_init();
|
void arch_init();
|
||||||
void init();
|
void init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool should_invoke_scheduler();
|
Loading…
Reference in New Issue
Block a user