hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/x86/include/asm/irq_remapping.h
....@@ -1,19 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2012 Advanced Micro Devices, Inc.
34 * Author: Joerg Roedel <joerg.roedel@amd.com>
4
- *
5
- * This program is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU General Public License version 2 as published
7
- * by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU General Public License
15
- * along with this program; if not, write to the Free Software
16
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
175 *
186 * This header file contains the interface of the interrupt remapping code to
197 * the x86 interrupt management code.
....@@ -45,6 +33,8 @@
4533
4634 #ifdef CONFIG_IRQ_REMAP
4735
36
+extern raw_spinlock_t irq_2_ir_lock;
37
+
4838 extern bool irq_remapping_cap(enum irq_remap_cap cap);
4939 extern void set_irq_remapping_broken(void);
5040 extern int irq_remapping_prepare(void);
....@@ -54,8 +44,6 @@
5444 extern int irq_remap_enable_fault_handling(void);
5545 extern void panic_if_irq_remap(const char *msg);
5646
57
-extern struct irq_domain *
58
-irq_remapping_get_ir_irq_domain(struct irq_alloc_info *info);
5947 extern struct irq_domain *
6048 irq_remapping_get_irq_domain(struct irq_alloc_info *info);
6149
....@@ -81,12 +69,6 @@
8169
8270 static inline void panic_if_irq_remap(const char *msg)
8371 {
84
-}
85
-
86
-static inline struct irq_domain *
87
-irq_remapping_get_ir_irq_domain(struct irq_alloc_info *info)
88
-{
89
- return NULL;
9072 }
9173
9274 static inline struct irq_domain *