Home
last modified time | relevance | path

Searched refs:stathz (Results 1 – 25 of 29) sorted by relevance

12

/openbsd/sys/kern/
H A Dkern_clock.c77 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 Dsched_bsd.c260 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 Dkern_resource.c499 st = st * 1000000000 / stathz; in calctsru()
502 ut = ut * 1000000000 / stathz; in calctsru()
506 it = it * 1000000000 / stathz; in calctsru()
H A Dkern_time.c247 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 Dagtimer.c69 void agtimer_setstatclockrate(int stathz);
231 stathz = hz; in agtimer_cpu_initclocks()
232 profhz = stathz * 10; in agtimer_cpu_initclocks()
H A Damptimer.c105 void amptimer_setstatclockrate(int stathz);
288 stathz = hz; in amptimer_cpu_initclocks()
/openbsd/sys/arch/powerpc64/powerpc64/
H A Dclock.c95 stathz = hz; in cpu_initclocks()
96 profhz = stathz * 10; in cpu_initclocks()
/openbsd/sys/arch/luna88k/luna88k/
H A Dclock.c139 stathz = hz; in cpu_initclocks()
140 profhz = stathz; in cpu_initclocks()
/openbsd/sys/arch/riscv64/riscv64/
H A Dclock.c92 stathz = hz; in cpu_initclocks()
93 profhz = stathz * 10; in cpu_initclocks()
/openbsd/sys/arch/arm64/dev/
H A Dagtimer.c74 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 Dclock.c117 stathz = hz; in cpu_initclocks()
118 profhz = stathz * 10; in cpu_initclocks()
/openbsd/sys/arch/alpha/alpha/
H A Dclock.c192 stathz = hz; in cpu_initclocks()
193 profhz = stathz; in cpu_initclocks()
/openbsd/sys/arch/mips64/mips64/
H A Dclock.c242 stathz = hz; in cp0_initclock()
243 profhz = stathz * 10; in cp0_initclock()
/openbsd/sys/arch/macppc/macppc/
H A Dclock.c196 stathz = hz; in cpu_initclocks()
197 profhz = stathz * 10; in cpu_initclocks()
/openbsd/sys/sys/
H A Dkernel.h56 extern int stathz; /* statistics clock's frequency */
/openbsd/sys/arch/armv7/omap/
H A Dgptimer.c199 stathz = hz; in gptimer_cpu_initclocks()
200 profhz = stathz * 10; in gptimer_cpu_initclocks()
H A Ddmtimer.c233 stathz = hz; in dmtimer_cpu_initclocks()
234 profhz = stathz * 10; in dmtimer_cpu_initclocks()
/openbsd/sys/arch/armv7/sunxi/
H A Dsxitimer.c180 stathz = hz; in sxitimer_attach()
181 profhz = stathz * 10; in sxitimer_attach()
/openbsd/sys/arch/i386/isa/
H A Dclock.c226 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 Dlapic.c327 stathz = hz; in lapic_initclocks()
328 profhz = stathz * 10; in lapic_initclocks()
/openbsd/sys/arch/sh/sh/
H A Dclock.c260 stathz = hz; in cpu_initclocks()
261 profhz = stathz; in cpu_initclocks()
/openbsd/sys/arch/amd64/isa/
H A Dclock.c284 stathz = 128; in i8254_initclocks()
518 if (arg == stathz) in setstatclockrate()
/openbsd/sys/arch/sparc64/sparc64/
H A Dclock.c483 stathz = hz; in cpu_initclocks()
484 profhz = stathz * 10; in cpu_initclocks()
/openbsd/sys/arch/amd64/amd64/
H A Dlapic.c506 stathz = hz; in lapic_initclocks()
507 profhz = stathz * 10; in lapic_initclocks()
/openbsd/sys/arch/loongson/dev/
H A Dglxclk.c190 stathz = hz = 128; in glxclk_initclock()

12