efi: dmi: List SMBIOS3 table before SMBIOS table
authorJean Delvare <jdelvare@suse.de>
Thu, 30 Apr 2015 13:23:05 +0000 (15:23 +0200)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 5 May 2015 16:29:28 +0000 (17:29 +0100)
commitb119fe080a83d32d78f56877fe3a95a155417130
tree50b61170192ec7659861810d2b5c6b8f09c43050
parentf2f6b587c5533c43f3c26f1babd96e32b2c12a9b
efi: dmi: List SMBIOS3 table before SMBIOS table

The SMBIOS3 table should appear before the SMBIOS table in
/sys/firmware/efi/systab. This allows user-space utilities which
support both to pick the SMBIOS3 table with a single pass on systems
where both are implemented. The SMBIOS3 entry point is more capable
than the SMBIOS entry point so it should be preferred.

This follows the same logic as the ACPI20 table being listed before
the ACPI table.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
drivers/firmware/efi/efi.c