Skip to content

Commit

Permalink
[POWERPC] Remove unused platform_machine_check()
Browse files Browse the repository at this point in the history
Remove leftover cruft from ARCH=ppc.

There are no users of platform_machine_check() in ARCH=powerpc, and none
should be added (they should use ppc_md.machine_check_handler instead).

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Olof Johansson authored and Paul Mackerras committed Sep 13, 2007
1 parent 3850169 commit 01f1c73
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions arch/powerpc/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,15 +324,6 @@ static inline int check_io_access(struct pt_regs *regs)
#define clear_single_step(regs) ((regs)->msr &= ~MSR_SE)
#endif

/*
* This is "fall-back" implementation for configurations
* which don't provide platform-specific machine check info
*/
void __attribute__ ((weak))
platform_machine_check(struct pt_regs *regs)
{
}

void machine_check_exception(struct pt_regs *regs)
{
int recover = 0;
Expand Down Expand Up @@ -480,12 +471,6 @@ void machine_check_exception(struct pt_regs *regs)
}
#endif /* CONFIG_4xx */

/*
* Optional platform-provided routine to print out
* additional info, e.g. bus error registers.
*/
platform_machine_check(regs);

if (debugger_fault_handler(regs))
return;
die("Machine check", regs, SIGBUS);
Expand Down

0 comments on commit 01f1c73

Please sign in to comment.