wdt.c revision 927a453e165c072d45bd6aa2945b3db0fce17c56
0N/A * The contents of this file are subject to the terms of the 0N/A * Common Development and Distribution License (the "License"). 0N/A * You may not use this file except in compliance with the License. 0N/A * See the License for the specific language governing permissions 0N/A * and limitations under the License. 0N/A * When distributing Covered Code, include this CDDL HEADER in each 0N/A * If applicable, add the following below this CDDL HEADER, with the 0N/A * fields enclosed by brackets "[]" replaced with your own identifying 0N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2362N/A * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 2362N/A * Use is subject to license terms. 0N/A#
pragma ident "%Z%%M% %I% %E% SMI" 955N/A * MILLISEC defines the number of milliseconds in a second. 0N/A * The ratio to calculate the watchdog timer pat interval. * Get the watchdog-max-timeout and watchdog-resolution MD properties. "watchdog is disabled.");
* round the timeout to the nearest smaller value. * Pat the watchdog timer periodically, for regular pat in tod_get when * the kernel runs normally and long pat in deadman when panicking. * long timeout is only used while panicking. * Pat the watchdog via hv api: * We don't save/restore the remaining watchdog timeout time at present. * We don't save/restore the remaining watchdog timeout time at present. * Set the pat intervals for both regular (when Solaris is running), * and long timeout (i.e., when panicking) cases.