[PATCH] alpha: in_irq() cleanup

Subsystems: alpha port, the rest

STALE1313d

2 messages, 2 authors, 2023-02-26 · open the first message on its own page

[PATCH] alpha: in_irq() cleanup

From: Changbin Du <hidden>
Date: 2021-08-14 01:01:17

Replace the obsolete and ambiguos macro in_irq() with new
macro in_hardirq().

Signed-off-by: Changbin Du <redacted>
---
 arch/alpha/kernel/process.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/alpha/kernel/process.c b/arch/alpha/kernel/process.c
index a5123ea426ce..a524de9f1c98 100644
--- a/arch/alpha/kernel/process.c
+++ b/arch/alpha/kernel/process.c
@@ -134,7 +134,7 @@ common_shutdown_1(void *generic_ptr)
 #ifdef CONFIG_DUMMY_CONSOLE
 		/* If we've gotten here after SysRq-b, leave interrupt
 		   context before taking over the console. */
-		if (in_irq())
+		if (in_hardirq())
 			irq_exit();
 		/* This has the effect of resetting the VGA video origin.  */
 		console_lock();
-- 
2.30.2

Re: [PATCH] alpha: in_irq() cleanup

From: Matt Turner <mattst88@gmail.com>
Date: 2023-02-26 02:09:40

On Fri, Aug 13, 2021 at 9:01 PM Changbin Du [off-list ref] wrote:
quoted hunk
Replace the obsolete and ambiguos macro in_irq() with new
macro in_hardirq().

Signed-off-by: Changbin Du <redacted>
---
 arch/alpha/kernel/process.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/alpha/kernel/process.c b/arch/alpha/kernel/process.c
index a5123ea426ce..a524de9f1c98 100644
--- a/arch/alpha/kernel/process.c
+++ b/arch/alpha/kernel/process.c
@@ -134,7 +134,7 @@ common_shutdown_1(void *generic_ptr)
 #ifdef CONFIG_DUMMY_CONSOLE
                /* If we've gotten here after SysRq-b, leave interrupt
                   context before taking over the console. */
-               if (in_irq())
+               if (in_hardirq())
                        irq_exit();
                /* This has the effect of resetting the VGA video origin.  */
                console_lock();
--
2.30.2
Thanks for the patch! This was included in my pull request today and
is now upstream in Linus' tree.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help