diff options
| author | Frederic Weisbecker <frederic@kernel.org> | 2018-05-08 09:38:26 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2018-05-14 05:25:28 -0400 |
| commit | 48bda43eabb8d086204f543cf8bbad696b8c6391 (patch) | |
| tree | a24557aaa5ccc4d3f6ed4abefe94f30c0ee4de3c | |
| parent | 1a8bc8f8d6a7980a999975edbd29578fbce09359 (diff) | |
softirq/s390: Move default mutators of overwritten softirq mask to s390
s390 is now the last architecture that entirely overwrites
local_softirq_pending() and uses the according default definitions of
set_softirq_pending() and or_softirq_pending().
Just move these to s390 to debloat the generic code complexity.
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: David S. Miller <davem@davemloft.net>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Helge Deller <deller@gmx.de>
Cc: James E.J. Bottomley <jejb@parisc-linux.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Rich Felker <dalias@libc.org>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Link: http://lkml.kernel.org/r/1525786706-22846-12-git-send-email-frederic@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
| -rw-r--r-- | arch/s390/include/asm/hardirq.h | 2 | ||||
| -rw-r--r-- | include/linux/interrupt.h | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/arch/s390/include/asm/hardirq.h b/arch/s390/include/asm/hardirq.h index a296c6acfd07..dfbc3c6c0674 100644 --- a/arch/s390/include/asm/hardirq.h +++ b/arch/s390/include/asm/hardirq.h | |||
| @@ -14,6 +14,8 @@ | |||
| 14 | #include <asm/lowcore.h> | 14 | #include <asm/lowcore.h> |
| 15 | 15 | ||
| 16 | #define local_softirq_pending() (S390_lowcore.softirq_pending) | 16 | #define local_softirq_pending() (S390_lowcore.softirq_pending) |
| 17 | #define set_softirq_pending(x) (S390_lowcore.softirq_pending = (x)) | ||
| 18 | #define or_softirq_pending(x) (S390_lowcore.softirq_pending |= (x)) | ||
| 17 | 19 | ||
| 18 | #define __ARCH_IRQ_STAT | 20 | #define __ARCH_IRQ_STAT |
| 19 | #define __ARCH_HAS_DO_SOFTIRQ | 21 | #define __ARCH_HAS_DO_SOFTIRQ |
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index 7a11f73c5c3b..eeceac3376fc 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h | |||
| @@ -442,13 +442,6 @@ extern bool force_irqthreads; | |||
| 442 | #define set_softirq_pending(x) (__this_cpu_write(local_softirq_pending_ref, (x))) | 442 | #define set_softirq_pending(x) (__this_cpu_write(local_softirq_pending_ref, (x))) |
| 443 | #define or_softirq_pending(x) (__this_cpu_or(local_softirq_pending_ref, (x))) | 443 | #define or_softirq_pending(x) (__this_cpu_or(local_softirq_pending_ref, (x))) |
| 444 | 444 | ||
| 445 | #else /* local_softirq_pending */ | ||
| 446 | |||
| 447 | #ifndef __ARCH_SET_SOFTIRQ_PENDING | ||
| 448 | #define set_softirq_pending(x) (local_softirq_pending() = (x)) | ||
| 449 | #define or_softirq_pending(x) (local_softirq_pending() |= (x)) | ||
| 450 | #endif | ||
| 451 | |||
| 452 | #endif /* local_softirq_pending */ | 445 | #endif /* local_softirq_pending */ |
| 453 | 446 | ||
| 454 | /* Some architectures might implement lazy enabling/disabling of | 447 | /* Some architectures might implement lazy enabling/disabling of |
