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

Function stopwatch_expired

src/include/timer.h:152–156  ·  view source on GitHub ↗

* Tick and check the stopwatch for expiration. Returns non-zero on expiration. */

Source from the content-addressed store, hash-verified

150 * Tick and check the stopwatch for expiration. Returns non-zero on expiration.
151 */
152static inline int stopwatch_expired(struct stopwatch *sw)
153{
154 stopwatch_tick(sw);
155 return !mono_time_before(&sw->current, &sw->expires);
156}
157
158/*
159 * Tick and check the stopwatch as long as it has not expired.

Callers 15

get_switch_stateFunction · 0.85
get_switch_stateFunction · 0.85
launch_charger_appletFunction · 0.85
mainboard_wait_for_hpdFunction · 0.85
display_stopFunction · 0.85
launch_charger_appletFunction · 0.85
wait_for_hpdFunction · 0.85
wait_for_hpdFunction · 0.85
bootblock_mainboard_initFunction · 0.85
config_pmic_imonFunction · 0.85

Calls 2

stopwatch_tickFunction · 0.85
mono_time_beforeFunction · 0.85

Tested by

no test coverage detected