Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Frederic Weisbecker and committed by
Ingo Molnar
48bda43e 1a8bc8f8

+2 -7
+2
arch/s390/include/asm/hardirq.h
··· 14 14 #include <asm/lowcore.h> 15 15 16 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 20 #define __ARCH_IRQ_STAT 19 21 #define __ARCH_HAS_DO_SOFTIRQ
-7
include/linux/interrupt.h
··· 442 442 #define set_softirq_pending(x) (__this_cpu_write(local_softirq_pending_ref, (x))) 443 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 445 #endif /* local_softirq_pending */ 453 446 454 447 /* Some architectures might implement lazy enabling/disabling of