mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-10 21:01:49 +00:00
timer/foc: use current KIP-clock API
This prevents L4_DEPRECATED warnings.
This commit is contained in:
parent
1ea745ca2e
commit
c16288bcde
@ -79,7 +79,13 @@ Duration Timer::Time_source::curr_time()
|
||||
static Fiasco::l4_kernel_info_t * const kip =
|
||||
kip_ds.local_addr<Fiasco::l4_kernel_info_t>();
|
||||
|
||||
return Duration(Microseconds(kip->clock));
|
||||
#ifdef L4_SYS_KIP_H__
|
||||
Fiasco::l4_cpu_time_t const clock = kip->clock;
|
||||
#else
|
||||
Fiasco::l4_cpu_time_t const clock = Fiasco::l4_kip_clock(kip);
|
||||
#endif
|
||||
|
||||
return Duration(Microseconds(clock));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user