MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / gpt_refresh

Function gpt_refresh

core/timers.c:95–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95static void gpt_refresh(enum sched_item_id id) {
96 uint64_t next_event;
97 sched_set_item_clock(id, CLOCK_CPU);
98 sched_set(id, 0); /* dummy activate to current cycle */
99 next_event = gpt_next_event(id);
100 if (next_event) {
101 sched_set(id, next_event);
102 } else {
103 sched_clear(id);
104 }
105}
106
107static void gpt_event(enum sched_item_id id) {
108 uint64_t next_event;

Callers 1

gpt_resetFunction · 0.85

Calls 4

sched_set_item_clockFunction · 0.85
sched_setFunction · 0.85
gpt_next_eventFunction · 0.85
sched_clearFunction · 0.85

Tested by

no test coverage detected