summaryrefslogblamecommitdiffstats
path: root/lib/irq_regs.c
blob: 0d545a93070eaf9ea87e6b801e8008a94fc005d2 (plain) (tree)
1
2
3
4
5
6
7
8
                                            



                                                        
   

                         



                                             
                                  
      
// SPDX-License-Identifier: GPL-2.0-or-later
/* saved per-CPU IRQ register pointer
 *
 * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
 * Written by David Howells (dhowells@redhat.com)
 */
#include <linux/export.h>
#include <linux/percpu.h>
#include <asm/irq_regs.h>

#ifndef ARCH_HAS_OWN_IRQ_REGS
DEFINE_PER_CPU(struct pt_regs *, __irq_regs);
EXPORT_PER_CPU_SYMBOL(__irq_regs);
#endif