champo/ArqvengerOS — Issue #84: Cache the current time
Author: champo
Created: 2012-02-19 22:23:32+00:00
State: open
Labels: improvement

Every time the current time is needed (and this happens several times per disk related system call), the system talks to the RTC and transforms the data it gets into something usable.
A simpler and more efficient approach would be to store the current time in seconds in a variable that is used by the kernel instead of using the RTC directly. Once every few ticks this variable would be updated with the correct time given by the RTC, say 2 o 3 times per second to make sure we're never more than one second of the real system time.