drm/rockchip: vop2: Fix the windows switch between different layers
[drm/drm-misc.git] / arch / mips / include / asm / irq_regs.h
blob7795dc02c7a8e71108742975c86dff9fd158c51e
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
4 * Copyright (C) 2006 Ralf Baechle (ralf@linux-mips.org)
5 */
6 #ifndef __ASM_IRQ_REGS_H
7 #define __ASM_IRQ_REGS_H
9 #define ARCH_HAS_OWN_IRQ_REGS
11 #include <linux/thread_info.h>
13 static inline struct pt_regs *get_irq_regs(void)
15 return current_thread_info()->regs;
18 static inline struct pt_regs *set_irq_regs(struct pt_regs *new_regs)
20 struct pt_regs *old_regs;
22 old_regs = get_irq_regs();
23 current_thread_info()->regs = new_regs;
25 return old_regs;
28 #endif /* __ASM_IRQ_REGS_H */