Lines Matching +full:1 +full:hz

15  * 1. Redistributions of source code must retain the above copyright
62 #ifndef HZ
63 # define HZ 1000 macro
69 # define HZ_VM HZ
82 int hz; /* system clock's frequency */ variable
83 int tick; /* usec per tick (1000000 / hz) */
84 time_t tick_seconds_max; /* max hz * seconds an integer can hold */
85 struct bintime tick_bt; /* bintime per tick (1s / hz) */
110 SYSCTL_INT(_kern, OID_AUTO, hz, CTLFLAG_RDTUN | CTLFLAG_NOFETCH, &hz, 0,
113 "Maximum hz value supported");
115 "Minimum hz value supported");
180 hz = -1; in init_param1()
181 TUNABLE_INT_FETCH("kern.hz", &hz); in init_param1()
182 if (hz == -1) in init_param1()
183 hz = vm_guest > VM_GUEST_NO ? HZ_VM : HZ; in init_param1()
185 /* range check the "hz" value */ in init_param1()
186 if (__predict_false(hz < HZ_MINIMUM)) in init_param1()
187 hz = HZ_MINIMUM; in init_param1()
188 else if (__predict_false(hz > HZ_MAXIMUM)) in init_param1()
189 hz = HZ_MAXIMUM; in init_param1()
191 tick = 1000000 / hz; in init_param1()
192 tick_sbt = SBT_1S / hz; in init_param1()
194 tick_seconds_max = INT_MAX / hz; in init_param1()
200 ticksl = INT_MAX - (hz * 10 * 60); in init_param1()
202 vn_lock_pair_pause_max = hz / 100; in init_param1()
204 vn_lock_pair_pause_max = 1; in init_param1()
238 * 'ngroups_max + 1' computation (to obtain the size of the internal in init_param1()
252 const int ngroups_max_max = (1 << 24) - 1; in init_param1()
314 * The default limit for maxfiles is 1/12 of the number of in init_param2()
316 * At most it can be 1/6 the number of physical pages. in init_param2()
335 } else if (__bitcountl(maxphys) != 1) { /* power of two */ in init_param2()
339 maxphys = 1UL << flsl(maxphys); in init_param2()
351 * The default for maxpipekva is min(1/64 of the kernel address space, in init_param2()
352 * max(1/64 of main memory, 512KB)). See sys_pipe.c for more details. in init_param2()