MCPcopy Create free account
hub / github.com/coreboot/coreboot / stopwatch_init

Function stopwatch_init

src/include/timer.h:117–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115};
116
117static inline void stopwatch_init(struct stopwatch *sw)
118{
119 if (CONFIG(HAVE_MONOTONIC_TIMER))
120 timer_monotonic_get(&sw->start);
121 else
122 sw->start.microseconds = 0;
123
124 sw->current = sw->expires = sw->start;
125}
126
127static inline void stopwatch_init_usecs_expire(struct stopwatch *sw, uint64_t us)
128{

Callers 15

thread_joinFunction · 0.85
thread_mutex_lockFunction · 0.85
spi_readatFunction · 0.85
uart_bitbang_tx_byteFunction · 0.85
bsp_do_flight_planFunction · 0.85
mp_park_apsFunction · 0.85
scan_busFunction · 0.85
init_devFunction · 0.85
spm_initFunction · 0.85
mtk_init_mcuFunction · 0.85
pmic_efuse_settingFunction · 0.85
mt_mem_init_runFunction · 0.85

Calls 1

timer_monotonic_getFunction · 0.50

Tested by

no test coverage detected