* + alpha-replace-bogus-in_interrupt.patch added to -mm tree
@ 2020-11-14 0:25 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2020-11-14 0:25 UTC (permalink / raw)
To: bigeasy, ink, mattst88, mm-commits, rth, tglx
The patch titled
Subject: alpha: Replace bogus in_interrupt()
has been added to the -mm tree. Its filename is
alpha-replace-bogus-in_interrupt.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/alpha-replace-bogus-in_interrupt.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/alpha-replace-bogus-in_interrupt.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Thomas Gleixner <tglx@linutronix.de>
Subject: alpha: Replace bogus in_interrupt()
in_interrupt() is true for a variety of things including bottom half
disabled regions. Deducing hard interrupt context from it is dubious at
best.
Use in_irq() which is true if called in hard interrupt context. Otherwise
calling irq_exit() would do more harm than good.
Link: https://lkml.kernel.org/r/20201113135832.2202833-1-bigeasy@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
arch/alpha/kernel/process.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/arch/alpha/kernel/process.c~alpha-replace-bogus-in_interrupt
+++ a/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_interrupt())
+ if (in_irq())
irq_exit();
/* This has the effect of resetting the VGA video origin. */
console_lock();
_
Patches currently in -mm which might be from tglx@linutronix.de are
alpha-replace-bogus-in_interrupt.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-14 0:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-14 0:25 + alpha-replace-bogus-in_interrupt.patch added to -mm tree akpm
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).