diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2013-04-30 15:27:46 -0700 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2015-08-07 00:32:11 +0100 |
commit | 5c64725826c10634168ee2a2d5d955ca5ea68cb4 (patch) | |
tree | 3d856cb8d94d62160954089f7770dcc87f34a305 /fs | |
parent | 303241421684cdd2f9e931bc42b9de811320e7fd (diff) | |
download | kernel_samsung_smdk4412-5c64725826c10634168ee2a2d5d955ca5ea68cb4.zip kernel_samsung_smdk4412-5c64725826c10634168ee2a2d5d955ca5ea68cb4.tar.gz kernel_samsung_smdk4412-5c64725826c10634168ee2a2d5d955ca5ea68cb4.tar.bz2 |
dmi_scan: refactor dmi_scan_machine(), {smbios,dmi}_present()
commit 79bae42d51a5d498500c890c19ef76df41d2bf59 upstream.
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 <ben@decadent.org.uk>
Reported-by: Tim McGrath <tmhikaru@gmail.com>
Tested-by: Tim Mcgrath <tmhikaru@gmail.com>
Cc: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Signed-off-by: Artem Savkov <artem.savkov@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[bwh: Prerequisite for "firmware: dmi_scan: Fix ordering of product_uuid"]
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions