x86/reboot: Reduce to a single DMI table for reboot quirks
authorMichael D Labriola <michael.d.labriola@gmail.com>
Wed, 1 Feb 2012 15:05:00 +0000 (10:05 -0500)
committerIngo Molnar <mingo@elte.hu>
Tue, 7 Feb 2012 10:34:11 +0000 (11:34 +0100)
commit57b165948fe0e1cca78bca1fe1e1ae9a38baedd2
treed643576c8705a70f05047b9cb3e4b564f6d8f4df
parent7915a2e902df9fdb5ea5d5786a4172b38d0ea71e
x86/reboot: Reduce to a single DMI table for reboot quirks

This commit reduces the X86_32 reboot_dmi_table and the X86_64
pci_reboot_dmi_table into a single table with a single set of
functions (e.g., only 1 call to core_initcall).

The table entries that use set_bios_reboot are grouped together
inside a #define CONFIG_X86_32 block.

Note that there's a single entry that uses set_kbd_reboot, which
used to be available only on X86_32.  This commit moves that
entry outside the X86_32 block because it seems it never should
have been in there.  There's multiple places in reboot.c that
assume KBD is valid regardless of X86_32/X86_64.

Signed-off-by: Michael D Labriola <michael.d.labriola@gmail.com>
Cc: Matthew Garrett <mjg@redhat.com>
Link: http://lkml.kernel.org/n/tip-lv3aliubas2l3aenq8v3uklk@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/reboot.c