Loading...
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * S390 version
4 * Copyright IBM Corp. 1999, 2000
5 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com),
6 * Denis Joseph Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com)
7 *
8 * Derived from "include/asm-i386/hardirq.h"
9 */
10
11#ifndef __ASM_HARDIRQ_H
12#define __ASM_HARDIRQ_H
13
14#include <asm/lowcore.h>
15
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))
19
20#define __ARCH_IRQ_STAT
21#define __ARCH_IRQ_EXIT_IRQS_DISABLED
22
23static inline void ack_bad_irq(unsigned int irq)
24{
25 printk(KERN_CRIT "unexpected IRQ trap at vector %02x\n", irq);
26}
27
28#endif /* __ASM_HARDIRQ_H */
1/*
2 * include/asm-s390/hardirq.h
3 *
4 * S390 version
5 * Copyright (C) 1999,2000 IBM Deutschland Entwicklung GmbH, IBM Corporation
6 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com),
7 * Denis Joseph Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com)
8 *
9 * Derived from "include/asm-i386/hardirq.h"
10 */
11
12#ifndef __ASM_HARDIRQ_H
13#define __ASM_HARDIRQ_H
14
15#include <asm/lowcore.h>
16
17#define local_softirq_pending() (S390_lowcore.softirq_pending)
18
19#define __ARCH_IRQ_STAT
20#define __ARCH_HAS_DO_SOFTIRQ
21
22#define HARDIRQ_BITS 8
23
24#endif /* __ASM_HARDIRQ_H */