| 1864 | "Approximate number of hardclock ticks in a millisecond"); |
| 1865 | |
| 1866 | void |
| 1867 | tc_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 | |
| 1881 | static void __inline |
| 1882 | tc_adjprecision(void) |
no outgoing calls
no test coverage detected