Lines Matching defs:max_period
46 * sysctl -w kern.heartbeat.max_period=5
48 * sysctl -w kern.heartbeat.max_period=0
50 * sysctl -w kern.heartbeat.max_period=5
260 * set_max_period(max_period)
264 * - If max_period is zero, disable them.
266 * - If the max period was zero and max_period is nonzero, ensure
270 * max_period must be below UINT_MAX/4/hz to avoid arithmetic
276 set_max_period(unsigned max_period)
279 KASSERTMSG(max_period <= UINT_MAX/4/hz,
280 "max_period=%u must not exceed UINT_MAX/4/hz=%u (hz=%u)",
281 max_period, UINT_MAX/4/hz, hz);
289 if (heartbeat_max_period_secs == 0 && max_period != 0) {
308 atomic_store_relaxed(&heartbeat_max_period_secs, max_period);
309 atomic_store_relaxed(&heartbeat_max_period_ticks, max_period*hz);
315 * Sysctl handler for sysctl kern.heartbeat.max_period. Verifies
322 unsigned max_period;
327 max_period = heartbeat_max_period_secs;
329 node.sysctl_data = &max_period;
337 if (max_period > UINT_MAX/4/hz) {
347 set_max_period(max_period);
379 /* kern.heartbeat.max_period */
382 CTLTYPE_INT, "max_period",
387 printf("%s: failed to create kern.heartbeat.max_period: %d\n",
423 enum { max_period = HEARTBEAT_MAX_PERIOD_DEFAULT };
431 __CTASSERT(max_period < UINT_MAX/4);
447 set_max_period(max_period);
732 * max_period?