From: Ben Hutchings Date: Tue, 30 Apr 2013 22:27:46 +0000 (-0700) Subject: dmi_scan: refactor dmi_scan_machine(), {smbios,dmi}_present() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~88^2~62 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79bae42d51a5d498500c890c19ef76df41d2bf59;p=pandora-kernel.git 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. [artem.savkov@gmail.com: use proper buf type in dmi_present()] Signed-off-by: Ben Hutchings Reported-by: Tim McGrath Tested-by: Tim Mcgrath Cc: Zhenzhong Duan Signed-off-by: Artem Savkov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed