x86, trace: Remove __alloc_intr_gate()
Prepare to move set_intr_gate() into a macro by removing __alloc_intr_gate(). The purpose is to avoid failing a kernel build after applying a subsequent patch which changes set_intr_gate() into a macro. Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com> Link: http://lkml.kernel.org/r/52716DB8.1080702@hds.com Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
Родитель
5e01dc7b26
Коммит
959c071f09
|
@ -395,15 +395,10 @@ static inline void trace_set_intr_gate(unsigned int gate, void *addr)
|
|||
#define __trace_alloc_intr_gate(n, addr)
|
||||
#endif
|
||||
|
||||
static inline void __alloc_intr_gate(unsigned int n, void *addr)
|
||||
{
|
||||
set_intr_gate(n, addr);
|
||||
}
|
||||
|
||||
#define alloc_intr_gate(n, addr) \
|
||||
do { \
|
||||
alloc_system_vector(n); \
|
||||
__alloc_intr_gate(n, addr); \
|
||||
set_intr_gate(n, addr); \
|
||||
__trace_alloc_intr_gate(n, trace_##addr); \
|
||||
} while (0)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче