/openbsd/sys/kern/ |
H A D | kern_clock.c | 77 int stathz; variable 109 KASSERT(stathz >= 1 && stathz <= 1000000000); in initclocks() 115 statclock_avg = 1000000000 / stathz; in initclocks() 127 KASSERT(profhz >= stathz && profhz <= 1000000000); in initclocks() 128 KASSERT(profhz % stathz == 0); in initclocks() 251 setstatclockrate(stathz); in stopprofclock() 351 clkinfo.stathz = stathz; in sysctl_clockrate()
|
H A D | sched_bsd.c | 260 p->p_pctcpu += (stathz == 100)? in schedcpu() 263 << (FSHIFT - CCPU_SHIFT)) / stathz; in schedcpu() 266 (p->p_cpticks * FSCALE / stathz)) >> FSHIFT; in schedcpu()
|
H A D | kern_resource.c | 499 st = st * 1000000000 / stathz; in calctsru() 502 ut = ut * 1000000000 / stathz; in calctsru() 506 it = it * 1000000000 / stathz; in calctsru()
|
H A D | kern_time.c | 247 ts.tv_nsec = 1000000000 / stathz; in sys_clock_getres() 257 ts.tv_nsec = 1000000000 / stathz; in sys_clock_getres()
|
/openbsd/sys/arch/arm/cortex/ |
H A D | agtimer.c | 69 void agtimer_setstatclockrate(int stathz); 231 stathz = hz; in agtimer_cpu_initclocks() 232 profhz = stathz * 10; in agtimer_cpu_initclocks()
|
H A D | amptimer.c | 105 void amptimer_setstatclockrate(int stathz); 288 stathz = hz; in amptimer_cpu_initclocks()
|
/openbsd/sys/arch/powerpc64/powerpc64/ |
H A D | clock.c | 95 stathz = hz; in cpu_initclocks() 96 profhz = stathz * 10; in cpu_initclocks()
|
/openbsd/sys/arch/luna88k/luna88k/ |
H A D | clock.c | 139 stathz = hz; in cpu_initclocks() 140 profhz = stathz; in cpu_initclocks()
|
/openbsd/sys/arch/riscv64/riscv64/ |
H A D | clock.c | 92 stathz = hz; in cpu_initclocks() 93 profhz = stathz * 10; in cpu_initclocks()
|
/openbsd/sys/arch/arm64/dev/ |
H A D | agtimer.c | 74 void agtimer_setstatclockrate(int stathz); 294 stathz = hz; in agtimer_cpu_initclocks() 295 profhz = stathz * 10; in agtimer_cpu_initclocks()
|
/openbsd/sys/arch/hppa/dev/ |
H A D | clock.c | 117 stathz = hz; in cpu_initclocks() 118 profhz = stathz * 10; in cpu_initclocks()
|
/openbsd/sys/arch/alpha/alpha/ |
H A D | clock.c | 192 stathz = hz; in cpu_initclocks() 193 profhz = stathz; in cpu_initclocks()
|
/openbsd/sys/arch/mips64/mips64/ |
H A D | clock.c | 242 stathz = hz; in cp0_initclock() 243 profhz = stathz * 10; in cp0_initclock()
|
/openbsd/sys/arch/macppc/macppc/ |
H A D | clock.c | 196 stathz = hz; in cpu_initclocks() 197 profhz = stathz * 10; in cpu_initclocks()
|
/openbsd/sys/sys/ |
H A D | kernel.h | 56 extern int stathz; /* statistics clock's frequency */
|
/openbsd/sys/arch/armv7/omap/ |
H A D | gptimer.c | 199 stathz = hz; in gptimer_cpu_initclocks() 200 profhz = stathz * 10; in gptimer_cpu_initclocks()
|
H A D | dmtimer.c | 233 stathz = hz; in dmtimer_cpu_initclocks() 234 profhz = stathz * 10; in dmtimer_cpu_initclocks()
|
/openbsd/sys/arch/armv7/sunxi/ |
H A D | sxitimer.c | 180 stathz = hz; in sxitimer_attach() 181 profhz = stathz * 10; in sxitimer_attach()
|
/openbsd/sys/arch/i386/isa/ |
H A D | clock.c | 226 if (stathz != 0 && stat) in rtcintr() 423 stathz = 128; in i8254_initclocks() 664 if (arg == stathz) in setstatclockrate()
|
/openbsd/sys/arch/i386/i386/ |
H A D | lapic.c | 327 stathz = hz; in lapic_initclocks() 328 profhz = stathz * 10; in lapic_initclocks()
|
/openbsd/sys/arch/sh/sh/ |
H A D | clock.c | 260 stathz = hz; in cpu_initclocks() 261 profhz = stathz; in cpu_initclocks()
|
/openbsd/sys/arch/amd64/isa/ |
H A D | clock.c | 284 stathz = 128; in i8254_initclocks() 518 if (arg == stathz) in setstatclockrate()
|
/openbsd/sys/arch/sparc64/sparc64/ |
H A D | clock.c | 483 stathz = hz; in cpu_initclocks() 484 profhz = stathz * 10; in cpu_initclocks()
|
/openbsd/sys/arch/amd64/amd64/ |
H A D | lapic.c | 506 stathz = hz; in lapic_initclocks() 507 profhz = stathz * 10; in lapic_initclocks()
|
/openbsd/sys/arch/loongson/dev/ |
H A D | glxclk.c | 190 stathz = hz = 128; in glxclk_initclock()
|