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

Function tc_ticktock

freebsd/kern/kern_tc.c:1866–1879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1864 "Approximate number of hardclock ticks in a millisecond");
1865
1866void
1867tc_ticktock(int cnt)
1868{
1869 static int count;
1870
1871 if (mtx_trylock_spin(&tc_setclock_mtx)) {
1872 count += cnt;
1873 if (count >= tc_tick) {
1874 count = 0;
1875 tc_windup(NULL);
1876 }
1877 mtx_unlock_spin(&tc_setclock_mtx);
1878 }
1879}
1880
1881static void __inline
1882tc_adjprecision(void)

Callers 2

hardclockFunction · 0.85
ff_hardclockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected