* [PATCH] alpha: in_irq() cleanup
@ 2021-08-14 1:01 Changbin Du
2023-02-26 2:09 ` Matt Turner
0 siblings, 1 reply; 2+ messages in thread
From: Changbin Du @ 2021-08-14 1:01 UTC (permalink / raw)
To: Richard Henderson, Ivan Kokshaysky, Matt Turner
Cc: linux-alpha, linux-kernel, Changbin Du
Replace the obsolete and ambiguos macro in_irq() with new
macro in_hardirq().
Signed-off-by: Changbin Du <changbin.du@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] alpha: in_irq() cleanup
2021-08-14 1:01 [PATCH] alpha: in_irq() cleanup Changbin Du
@ 2023-02-26 2:09 ` Matt Turner
0 siblings, 0 replies; 2+ messages in thread
From: Matt Turner @ 2023-02-26 2:09 UTC (permalink / raw)
To: Changbin Du; +Cc: Richard Henderson, Ivan Kokshaysky, linux-alpha, linux-kernel
On Fri, Aug 13, 2021 at 9:01 PM Changbin Du <changbin.du@gmail.com> wrote:
>
> Replace the obsolete and ambiguos macro in_irq() with new
> macro in_hardirq().
>
> Signed-off-by: Changbin Du <changbin.du@gmail.com>
> ---
> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-26 2:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-14 1:01 [PATCH] alpha: in_irq() cleanup Changbin Du
2023-02-26 2:09 ` Matt Turner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).