Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
Linux-Kernel Archive: [PATCH 07/30] mips: ip22: Reword PANICED to PANICKED and remove useless header [PATCH 07/30] mips: ip22: Reword PANICED to PANICKED and remove useless header From: Guilherme G. Piccoli Date: Wed Apr 27 2022 - 18:53:32 EST Next message: Guilherme G. Piccoli: "[PATCH 08/30] powerpc/setup: Refactor/untangle panic notifiers" Previous message: Guilherme G. Piccoli: "[PATCH 02/30] ARM: kexec: Disable IRQs/FIQs also on crash CPUs shutdown path" In reply to: Marc Zyngier: "Re: [PATCH 02/30] ARM: kexec: Disable IRQs/FIQs also on crash CPUs shutdown path" Next in thread: Guilherme G. Piccoli: "[PATCH 08/30] powerpc/setup: Refactor/untangle panic notifiers" Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Many other place in the kernel prefer the latter, so let's keep it consistent in MIPS code as well. Also, removes a useless header. Cc: Thomas Bogendoerfer Signed-off-by: Guilherme G. Piccoli --- arch/mips/sgi-ip22/ip22-reset.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/mips/sgi-ip22/ip22-reset.c b/arch/mips/sgi-ip22/ip22-reset.c index 9028dbbb45dd..8f0861c58080 100644 --- a/arch/mips/sgi-ip22/ip22-reset.c +++ b/arch/mips/sgi-ip22/ip22-reset.c @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include @@ -41,7 +40,7 @@ static struct timer_list power_timer, blink_timer, debounce_timer; static unsigned long blink_timer_timeout; -#define MACHINE_PANICED 1 +#define MACHINE_PANICKED 1 #define MACHINE_SHUTTING_DOWN 2 static int machine_state; @@ -112,7 +111,7 @@ static void debounce(struct timer_list *unused) return; } - if (machine_state & MACHINE_PANICED) + if (machine_state & MACHINE_PANICKED) sgimc->cpuctrl0 |= SGIMC_CCTRL0_SYSINIT; enable_irq(SGI_PANEL_IRQ); @@ -120,7 +119,7 @@ static void debounce(struct timer_list *unused) static inline void power_button(void) { - if (machine_state & MACHINE_PANICED) + if (machine_state & MACHINE_PANICKED) return; if ((machine_state & MACHINE_SHUTTING_DOWN) || @@ -167,9 +166,9 @@ static irqreturn_t panel_int(int irq, void *dev_id) static int panic_event(struct notifier_block *this, unsigned long event, void *ptr) { - if (machine_state & MACHINE_PANICED) + if (machine_state & MACHINE_PANICKED) return NOTIFY_DONE; - machine_state |= MACHINE_PANICED; + machine_state |= MACHINE_PANICKED; blink_timer_timeout = PANIC_FREQ; blink_timeout(&blink_timer); -- 2.36.0 Next message: Guilherme G. Piccoli: "[PATCH 08/30] powerpc/setup: Refactor/untangle panic notifiers" Previous message: Guilherme G. Piccoli: "[PATCH 02/30] ARM: kexec: Disable IRQs/FIQs also on crash CPUs shutdown path" In reply to: Marc Zyngier: "Re: [PATCH 02/30] ARM: kexec: Disable IRQs/FIQs also on crash CPUs shutdown path" Next in thread: Guilherme G. Piccoli: "[PATCH 08/30] powerpc/setup: Refactor/untangle panic notifiers" Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]