Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_tc.c
| Show First 20 Lines • Show All 1,995 Lines • ▼ Show 20 Lines | |||||
| SYSINIT(timecounter, SI_SUB_CLOCKS, SI_ORDER_SECOND, inittimecounter, NULL); | SYSINIT(timecounter, SI_SUB_CLOCKS, SI_ORDER_SECOND, inittimecounter, NULL); | ||||
| /* Cpu tick handling -------------------------------------------------*/ | /* Cpu tick handling -------------------------------------------------*/ | ||||
| static int cpu_tick_variable; | static int cpu_tick_variable; | ||||
| static uint64_t cpu_tick_frequency; | static uint64_t cpu_tick_frequency; | ||||
| static DPCPU_DEFINE(uint64_t, tc_cpu_ticks_base); | DPCPU_DEFINE_STATIC(uint64_t, tc_cpu_ticks_base); | ||||
| static DPCPU_DEFINE(unsigned, tc_cpu_ticks_last); | DPCPU_DEFINE_STATIC(unsigned, tc_cpu_ticks_last); | ||||
| static uint64_t | static uint64_t | ||||
| tc_cpu_ticks(void) | tc_cpu_ticks(void) | ||||
| { | { | ||||
| struct timecounter *tc; | struct timecounter *tc; | ||||
| uint64_t res, *base; | uint64_t res, *base; | ||||
| unsigned u, *last; | unsigned u, *last; | ||||
| ▲ Show 20 Lines • Show All 189 Lines • Show Last 20 Lines | |||||