mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
cd1a41ceba
To prepare for inlining do_softirq_own_stack() replace __ARCH_HAS_DO_SOFTIRQ with a Kconfig switch and select it in the affected architectures. This allows in the next step to move the function prototype and the inline stub into a seperate asm-generic header file which is required to avoid include recursion. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20210210002513.181713427@linutronix.de
29 lines
777 B
C
29 lines
777 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* S390 version
|
|
* Copyright IBM Corp. 1999, 2000
|
|
* Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com),
|
|
* Denis Joseph Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com)
|
|
*
|
|
* Derived from "include/asm-i386/hardirq.h"
|
|
*/
|
|
|
|
#ifndef __ASM_HARDIRQ_H
|
|
#define __ASM_HARDIRQ_H
|
|
|
|
#include <asm/lowcore.h>
|
|
|
|
#define local_softirq_pending() (S390_lowcore.softirq_pending)
|
|
#define set_softirq_pending(x) (S390_lowcore.softirq_pending = (x))
|
|
#define or_softirq_pending(x) (S390_lowcore.softirq_pending |= (x))
|
|
|
|
#define __ARCH_IRQ_STAT
|
|
#define __ARCH_IRQ_EXIT_IRQS_DISABLED
|
|
|
|
static inline void ack_bad_irq(unsigned int irq)
|
|
{
|
|
printk(KERN_CRIT "unexpected IRQ trap at vector %02x\n", irq);
|
|
}
|
|
|
|
#endif /* __ASM_HARDIRQ_H */
|