Skip to content

Commit

Permalink
parisc: traps: Drop cpu_lpmc function pointer
Browse files Browse the repository at this point in the history
This function pointer is only used by one function, so no need
to keep such an indirection.

Signed-off-by: Helge Deller <deller@gmx.de>
  • Loading branch information
Helge Deller committed Aug 20, 2023
1 parent 390a208 commit 75c6d08
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/parisc/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,6 @@ static void default_trap(int code, struct pt_regs *regs)
show_regs(regs);
}

void (*cpu_lpmc) (int code, struct pt_regs *regs) __read_mostly = default_trap;


static void transfer_pim_to_trap_frame(struct pt_regs *regs)
{
register int i;
Expand Down Expand Up @@ -557,7 +554,7 @@ void notrace handle_interruption(int code, struct pt_regs *regs)

flush_cache_all();
flush_tlb_all();
cpu_lpmc(5, regs);
default_trap(code, regs);
return;

case PARISC_ITLB_TRAP:
Expand Down

0 comments on commit 75c6d08

Please sign in to comment.