Change time offset to RwLock

This commit is contained in:
Wildan M
2026-03-10 05:58:26 +07:00
parent 7fa253cf6a
commit c4e86bfffd
4 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ impl InterruptHandler for GenericTimer {
fn irq_handler(&mut self, irq: u32, token: &mut CleanLockToken) {
self.clear_irq();
{
*time::OFFSET.lock(token.token()) += self.clk_freq as u128;
*time::OFFSET.write(token.token()) += self.clk_freq as u128;
}
timeout::trigger(token);