Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ipmi/ipmi.c
Show All 12 Lines | |||||
static int on = 1; | static int on = 1; | ||||
static bool wd_in_shutdown = false; | static bool wd_in_shutdown = false; | ||||
static int wd_timer_actions = IPMI_SET_WD_ACTION_POWER_CYCLE; | static int wd_timer_actions = IPMI_SET_WD_ACTION_POWER_CYCLE; | ||||
static int wd_shutdown_countdown = 0; /* sec */ | static int wd_shutdown_countdown = 0; /* sec */ | ||||
static int wd_startup_countdown = 0; /* sec */ | static int wd_startup_countdown = 0; /* sec */ | ||||
static int wd_pretimeout_countdown = 120; /* sec */ | static int wd_pretimeout_countdown = 120; /* sec */ | ||||
static int cycle_wait = 10; /* sec */ | static int cycle_wait = 10; /* sec */ | ||||
static SYSCTL_NODE(_hw, OID_AUTO, ipmi, CTLFLAG_RD, 0, | static SYSCTL_NODE(_hw, OID_AUTO, ipmi, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, | ||||
"IPMI driver parameters"); | "IPMI driver parameters"); | ||||
SYSCTL_INT(_hw_ipmi, OID_AUTO, on, CTLFLAG_RWTUN, | SYSCTL_INT(_hw_ipmi, OID_AUTO, on, CTLFLAG_RWTUN, | ||||
&on, 0, ""); | &on, 0, ""); | ||||
SYSCTL_INT(_hw_ipmi, OID_AUTO, wd_timer_actions, CTLFLAG_RW, | SYSCTL_INT(_hw_ipmi, OID_AUTO, wd_timer_actions, CTLFLAG_RW, | ||||
&wd_timer_actions, 0, | &wd_timer_actions, 0, | ||||
"IPMI watchdog timer actions (including pre-timeout interrupt)"); | "IPMI watchdog timer actions (including pre-timeout interrupt)"); | ||||
SYSCTL_INT(_hw_ipmi, OID_AUTO, wd_shutdown_countdown, CTLFLAG_RW, | SYSCTL_INT(_hw_ipmi, OID_AUTO, wd_shutdown_countdown, CTLFLAG_RW, | ||||
&wd_shutdown_countdown, 0, | &wd_shutdown_countdown, 0, | ||||
Show All 12 Lines |