/* * Once the driver indicates to the service processor that it is running * - see send_os_state() - the service processor sends periodic heartbeats * to the driver. The driver must respond to the heartbeats or else the OS * will be rebooted. * In the case of a panic the interrupt handler continues to work and thus * continues to respond to heartbeats, making the service processor believe * the OS is still running and thus preventing a reboot. * To prevent this from happening a callback is added the panic_notifier_list. * Before responding to a heartbeat the driver checks if a panic has happened, * if yes it suspends heartbeat, causing the service processor to reboot as * expected.
*/ staticint panic_happened(struct notifier_block *n, unsignedlong val, void *v)
{
suspend_heartbeats = 1; return 0;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.