/src/sys/arch/mvme68k/mvme68k/ |
clock.c | 95 * Set up the real-time and statistics clocks. Leave stathz 0 only 113 if (stathz == 0) 114 stathz = hz; 115 if (1000000 % stathz) { 116 printf("cannot get %d Hz statclock; using 100 Hz\n", stathz); 117 stathz = 100; 119 profhz = stathz; /* always */ 121 statint = 1000000 / stathz;
|
/src/sys/arch/virt68k/virt68k/ |
clock.c | 162 * Set up the real-time and statistics clocks. Leave stathz 0 only 184 stathz = 0; 186 } else if (stathz == 0) { 187 stathz = hz; 188 if (1000000 % stathz) { 190 "using 100 Hz\n", stathz); 191 stathz = 100; 193 profhz = stathz; /* always */ 194 statint = 1000000 / stathz; 215 freq = stathz; [all...] |
/src/sys/arch/hp300/hp300/ |
clock.c | 183 * Set up the real-time and statistics clocks. Leave stathz 0 only if 210 if (stathz == 0) /* XXX should be set in param.c */ 211 stathz = hz; 212 else if (COUNTS_PER_SEC % stathz) { 213 printf("cannot get %d Hz statclock; using 100 Hz\n", stathz); 214 stathz = 100; 217 profhz = stathz * 5; 218 else if (profhz < stathz || COUNTS_PER_SEC % profhz) { 220 profhz, stathz); 221 profhz = stathz; [all...] |
/src/sys/sys/ |
kernel.h | 61 extern int stathz; /* statistics clock's frequency */
|
/src/sys/arch/evbarm/ifpga/ |
ifpga_clock.c | 219 * We assume that hz is either stathz or profhz, and that neither will 227 if (new_hz == stathz) 253 if (stathz == 0) 254 stathz = hz; 255 else if (stathz < 50 || COUNTS_PER_SEC % stathz) { 256 printf("cannot get %d Hz statclock; using 100 Hz\n", stathz); 257 stathz = 100; 261 profhz = stathz * 5; 262 else if (profhz < stathz || COUNTS_PER_SEC % profhz) [all...] |
/src/sys/arch/arm/ofw/ |
ofwgencfg_clock.c | 122 printf("clock: hz=%d stathz = %d profhz = %d\n", hz, stathz, profhz); 132 if (stathz) {
|
/src/sys/arch/sparc/sparc/ |
clock.c | 145 * Leave stathz 0 only if no alternative timer is available. 159 if (stathz == 0) 160 stathz = hz; 161 if (1000000 % stathz) { 162 printf("cannot get %d Hz statclock; using 100 Hz\n", stathz); 163 stathz = 100; 165 profhz = stathz; /* always */ 167 statint = 1000000 / stathz; 178 * assuming stathz == 100. If it's not, compute a mask 181 * mask = round_power2(stathz / schedhz) - [all...] |
/src/sys/kern/ |
kern_clock.c | 120 * CPU ticks. The mean frequency of the second timer is stathz. 122 * If no second timer exists, stathz will be zero; in this case we drive 128 * be an integral multiple of stathz. 131 * profhz/stathz for statistics. (For profiling, every tick counts.) 134 int stathz; variable in typeref:typename:int 259 * Compute profhz and stathz, fix profhz if needed. 261 i = stathz ? stathz : hz; 289 if (stathz) { 318 if (stathz == 0 [all...] |
/src/sys/arch/arm/xscale/ |
becc_timer.c | 134 * We only have one timer available; stathz and profhz are 138 if (stathz != 0) 139 printf("Cannot get %d Hz statclock\n", stathz); 140 stathz = 0; 147 aprint_normal("clock: hz=%d stathz=%d profhz=%d\n", hz, stathz, profhz); 185 * We assume that hz is either stathz or profhz, and that neither
|
i80321_timer.c | 218 * We only have one timer available; stathz and profhz are 222 if (stathz != 0) 223 aprint_error("Cannot get %d Hz statclock\n", stathz); 224 stathz = 0; 231 aprint_normal("clock: hz=%d stathz=%d profhz=%d\n", hz, stathz, profhz); 263 * We assume that hz is either stathz or profhz, and that neither
|
ixp425_timer.c | 144 * We only have one timer available; stathz and profhz are 148 if (stathz != 0) 149 aprint_error("Cannot get %d Hz statclock\n", stathz); 150 stathz = 0; 157 aprint_normal("clock: hz=%d stathz=%d profhz=%d\n", hz, stathz, profhz); 190 * We assume that hz is either stathz or profhz, and that neither
|
/src/sys/arch/ia64/ia64/ |
clock.c | 91 stathz = hz;
|
/src/sys/arch/evbarm/iq80310/ |
iq80310_timer.c | 196 * We only have one timer available; stathz and profhz are 200 if (stathz != 0) 201 printf("Cannot get %d Hz statclock\n", stathz); 202 stathz = 0; 209 printf("clock: hz=%d stathz=%d profhz=%d\n", hz, stathz, profhz); 238 * We assume that hz is either stathz or profhz, and that neither
|
/src/sys/arch/sparc64/sparc64/ |
clock.c | 426 * Set up the real-time and statistics clocks. Leave stathz 0 only if 528 stathz = 0; 534 if (stathz == 0) 535 stathz = hz; 536 if (1000000 % stathz) { 537 printf("cannot get %d Hz statclock; using 100 Hz\n", stathz); 538 stathz = 100; 541 profhz = stathz; /* always */ 543 statint = 1000000 / stathz; 552 if (stathz > 60 [all...] |
/src/sys/arch/arm/footbridge/ |
footbridge_clock.c | 75 int statcountperusec; /* number of ticks per usec at current stathz */ 271 /* stathz and profhz should be set to something, we have the timer */ 272 if (stathz == 0) 273 stathz = hz; 276 profhz = stathz * 5; 279 aprint_debug("clock: hz=%d stathz = %d profhz = %d\n", hz, stathz, profhz); 297 /* If stathz is non-zero then setup the stat clock */ 298 if (stathz) { 300 setstatclockrate(stathz); [all...] |
/src/sys/arch/arm/s3c2xx0/ |
s3c24x0_clk.c | 50 #ifndef STATHZ 51 #define STATHZ 64 225 stathz = STATHZ; 226 profhz = stathz; 245 h = MIN(hz,stathz); 255 printf("clock: hz=%d stathz = %d PCLK=%d prescaler=%d tc=%ld\n", 256 hz, stathz, pclk, prescaler, tc); 259 /*((prescaler - 1) << 16) |*/ (time_constant(stathz)));
|
s3c2800_clk.c | 54 #ifndef STATHZ 55 #define STATHZ 64 226 stathz = STATHZ; 227 profhz = stathz; 251 printf("clock: hz=%d stathz = %d PCLK=%d prescaler=%d tc=%ld\n", 252 hz, stathz, pclk, prescaler, tc); 254 calc_time_constant(stathz);
|
/src/sys/arch/atari/dev/ |
clock.c | 207 if ((stathz == 0) || (stathz > hz) || (CLOCK_HZ % stathz)) 208 stathz = hz; 214 MFP->mf_tcdr = CLOCK_HZ/stathz; /* Set divisor */ 216 statmin = (CLOCK_HZ/stathz) - (statvar >> 1); 244 if (newhz == stathz)
|
/src/sys/arch/arm/sa11x0/ |
sa11x0_ost.c | 102 #ifndef STATHZ 103 #define STATHZ 64 239 stathz = STATHZ; 240 profhz = stathz; 244 sc->sc_statclock_step = TIMER_FREQUENCY / stathz; 246 aprint_normal("clock: hz=%d stathz=%d\n", hz, stathz); 250 sc->sc_statclock_count = TIMER_FREQUENCY / stathz;
|
/src/sys/arch/arm/gemini/ |
obio_timer.c | 130 #if STATHZ != HZ 131 # error system clock HZ and stat clock STATHZ must be same 249 profhz = stathz = hz; 260 profhz = stathz = hz;
|
/src/sys/arch/arm/iomd/ |
iomd_clock.c | 270 aprint_normal("clock: hz=%d stathz = %d profhz = %d\n", hz, stathz, profhz); 291 if (stathz) { 292 setstatclockrate(stathz);
|
/src/usr.bin/systat/ |
main.c | 72 int hz, stathz, maxslp; variable in typeref:typename:int 230 stathz = clk.stathz;
|
/src/sys/arch/arm/imx/ |
imxclock.c | 96 aprint_normal("clock: hz=%d stathz = %d\n", hz, stathz);
|
imx23_timrot.c | 44 extern int stathz; 185 stathz = (hz>>1);
|
/src/sys/arch/arm/ixp12x0/ |
ixp12x0_clk.c | 231 * We assume that hz is either stathz or profhz, and that neither 255 stathz = profhz = 0; 257 printf("clock: hz = %d stathz = %d\n", hz, stathz);
|