Skip to content

Commit

Permalink
x86: re-add reboot fixups
Browse files Browse the repository at this point in the history
Jan Beulich noticed that the reboot fixups went missing during
reboot.c unification.

(commit 4d022e3)

Geode and a few other rare boards with special reboot quirks are
affected.

Reported-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Mar 7, 2008
1 parent d032b31 commit 7432d14
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/x86/kernel/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,10 @@ static inline void kb_wait(void)
}
}

void __attribute__((weak)) mach_reboot_fixups(void)
{
}

static void native_machine_emergency_restart(void)
{
int i;
Expand All @@ -337,6 +341,8 @@ static void native_machine_emergency_restart(void)
/* Could also try the reset bit in the Hammer NB */
switch (reboot_type) {
case BOOT_KBD:
mach_reboot_fixups(); /* for board specific fixups */

for (i = 0; i < 10; i++) {
kb_wait();
udelay(50);
Expand Down

0 comments on commit 7432d14

Please sign in to comment.