35 lines
959 B
C
35 lines
959 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* S390 version
|
|
* Copyright IBM Corp. 1999, 2000
|
|
* Author(s): Martin Schwidefsky ([email protected]),
|
|
* Denis Joseph Barrow ([email protected],[email protected])
|
|
*
|
|
* Derived from "include/asm-i386/hardirq.h"
|
|
*/
|
|
|
|
#ifndef __ASM_HARDIRQ_H
|
|
#define __ASM_HARDIRQ_H
|
|
|
|
#include <asm/lowcore.h>
|
|
|
|
#define local_softirq_pending() (get_lowcore()->softirq_pending)
|
|
#define set_softirq_pending(x) (get_lowcore()->softirq_pending = (x))
|
|
#define or_softirq_pending(x) (get_lowcore()->softirq_pending |= (x))
|
|
/*
|
|
* Not sure what the right thing is here for s390,
|
|
* but returning 0 will result in no logical change
|
|
* from what happens now
|
|
*/
|
|
#define __cpu_softirq_pending(x) (0)
|
|
|
|
#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 */
|