Thomas Gleixner | 2874c5f | 2019-05-27 08:55:01 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
David Howells | 7d12e78 | 2006-10-05 14:55:46 +0100 | [diff] [blame] | 2 | /* saved per-CPU IRQ register pointer |
| 3 | * |
| 4 | * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved. |
| 5 | * Written by David Howells (dhowells@redhat.com) |
David Howells | 7d12e78 | 2006-10-05 14:55:46 +0100 | [diff] [blame] | 6 | */ |
Paul Gortmaker | 8bc3bcc | 2011-11-16 21:29:17 -0500 | [diff] [blame] | 7 | #include <linux/export.h> |
| 8 | #include <linux/percpu.h> |
David Howells | 7d12e78 | 2006-10-05 14:55:46 +0100 | [diff] [blame] | 9 | #include <asm/irq_regs.h> |
| 10 | |
| 11 | #ifndef ARCH_HAS_OWN_IRQ_REGS |
| 12 | DEFINE_PER_CPU(struct pt_regs *, __irq_regs); |
Andrew Morton | efbc52f | 2006-10-06 00:43:50 -0700 | [diff] [blame] | 13 | EXPORT_PER_CPU_SYMBOL(__irq_regs); |
David Howells | 7d12e78 | 2006-10-05 14:55:46 +0100 | [diff] [blame] | 14 | #endif |