MCPcopy Create free account
hub / github.com/F-Stack/f-stack / geode_cputicks

Function geode_cputicks

freebsd/i386/i386/geode.c:158–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156};
157
158static uint64_t
159geode_cputicks(void)
160{
161 unsigned c;
162 static unsigned last;
163 static uint64_t offset;
164
165 c = inl(geode_counter);
166 if (c < last)
167 offset += (1LL << 32);
168 last = c;
169 return (offset | c);
170}
171
172/*
173 * The GEODE watchdog runs from a 32kHz frequency. One period of that is

Callers

nothing calls this directly

Calls 1

inlFunction · 0.50

Tested by

no test coverage detected