#define POWERDOWN_TIMEOUT 120
/*
- * Blink frequency during reboot grace period and when panicked.
+ * Blink frequency during reboot grace period and when paniced.
*/
#define POWERDOWN_FREQ (HZ / 4)
#define PANIC_FREQ (HZ / 8)
static struct timer_list power_timer, blink_timer, debounce_timer;
-static int has_panicked, shuting_down;
+static int has_paniced, shuting_down;
static void ip32_machine_restart(char *command) __attribute__((noreturn));
static void ip32_machine_halt(void) __attribute__((noreturn));
}
CMOS_WRITE(reg_a & ~DS_REGA_DV0, RTC_REG_A);
- if (has_panicked)
+ if (has_paniced)
ip32_machine_restart(NULL);
enable_irq(MACEISA_RTC_IRQ);
static inline void ip32_power_button(void)
{
- if (has_panicked)
+ if (has_paniced)
return;
if (shuting_down || kill_proc(1, SIGINT, 1)) {
{
unsigned long led;
- if (has_panicked)
+ if (has_paniced)
return NOTIFY_DONE;
- has_panicked = 1;
+ has_paniced = 1;
/* turn off the green LED */
led = mace->perif.ctrl.misc | MACEISA_LED_GREEN;
init_timer(&blink_timer);
blink_timer.function = blink_timeout;
- atomic_notifier_chain_register(&panic_notifier_list, &panic_block);
+ notifier_chain_register(&panic_notifier_list, &panic_block);
request_irq(MACEISA_RTC_IRQ, ip32_rtc_int, 0, "rtc", NULL);