mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
x86: re-add reboot fixups
Jan Beulich noticed that the reboot fixups went missing during reboot.c unification. (commit 4d022e35fd7e07c522c7863fee6f07e53cf3fc14) 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>
This commit is contained in:
parent
d032b31a3a
commit
7432d149fd
@ -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;
|
||||
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user