]> Git Repo - linux.git/commit
dmi_scan: refactor dmi_scan_machine(), {smbios,dmi}_present()
authorBen Hutchings <[email protected]>
Tue, 30 Apr 2013 22:27:46 +0000 (15:27 -0700)
committerLinus Torvalds <[email protected]>
Wed, 1 May 2013 00:04:04 +0000 (17:04 -0700)
commit79bae42d51a5d498500c890c19ef76df41d2bf59
treecf36c042e863100e2bc30a2ff8b4f3510bf7367d
parentc1d025e22e0ef167a4589cf5a6b2a32bfef0472c
dmi_scan: refactor dmi_scan_machine(), {smbios,dmi}_present()

Move the calls to memcpy_fromio() up into the loop in
dmi_scan_machine(), and move the signature checks back down into
dmi_decode().  We need to check at 16-byte intervals but keep a 32-byte
buffer for an SMBIOS entry, so shift the buffer after each iteration.

Merge smbios_present() into dmi_present(), so we look for an SMBIOS
signature at the beginning of the given buffer and then for a DMI
signature at an offset of 16 bytes.

[[email protected]: use proper buf type in dmi_present()]
Signed-off-by: Ben Hutchings <[email protected]>
Reported-by: Tim McGrath <[email protected]>
Tested-by: Tim Mcgrath <[email protected]>
Cc: Zhenzhong Duan <[email protected]>
Signed-off-by: Artem Savkov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/firmware/dmi_scan.c
This page took 0.052379 seconds and 4 git commands to generate.