Skip to content

Commit

Permalink
x86/idt: Remove update_intr_gate()
Browse files Browse the repository at this point in the history
No more users.

Signed-off-by: Thomas Gleixner <[email protected]>
  • Loading branch information
KAGA-KOKO committed Jun 11, 2020
1 parent 5916d5f commit fba8dbe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion arch/x86/include/asm/desc.h
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,6 @@ static inline void set_desc_limit(struct desc_struct *desc, unsigned long limit)
desc->limit1 = (limit >> 16) & 0xf;
}

void update_intr_gate(unsigned int n, const void *addr);
void alloc_intr_gate(unsigned int n, const void *addr);

extern unsigned long system_vectors[];
Expand Down
8 changes: 0 additions & 8 deletions arch/x86/kernel/idt.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,14 +360,6 @@ void idt_invalidate(void *addr)
load_idt(&idt);
}

/* This goes away once ASYNC_PF is sanitized */
void __init update_intr_gate(unsigned int n, const void *addr)
{
if (WARN_ON_ONCE(!test_bit(n, system_vectors)))
return;
set_intr_gate(n, addr);
}

void __init alloc_intr_gate(unsigned int n, const void *addr)
{
if (WARN_ON(n < FIRST_SYSTEM_VECTOR))
Expand Down

0 comments on commit fba8dbe

Please sign in to comment.