timekeeper: try to sync base time between cpus

This commit is contained in:
Matheus
2024-10-02 19:43:32 -03:00
parent 65ef516fd8
commit a2f133b346
4 changed files with 78 additions and 1 deletions
+2
View File
@@ -29,6 +29,8 @@ void timekeeper_init(void);
// spins waiting for us to pass
void timekeeper_wait_us(time_t us);
void timekeeper_sync(void);
timespec_t timekeeper_timefromboot(void);
timespec_t timekeeper_time(void);
+1
View File
@@ -30,6 +30,7 @@ typedef struct cpu_t {
timekeeper_source_info_t *timekeeper_source_info;
time_t timekeeper_source_base_ticks;
time_t timekeeper_source_tick_offset;
isr_t *timekeeper_sync_isr;
isr_t isr[MAX_ISR_COUNT];
bool intstatus;