Ben Hutchings
79bae42d51
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 <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>
2013-04-30 17:04:04 -07:00
..
2013-04-29 09:30:25 -07:00
2013-03-15 17:20:02 +00:00
2013-04-30 09:36:50 -07:00
2013-02-27 19:10:24 -08:00
2013-04-29 19:07:40 -07:00
2013-03-01 13:52:03 -05:00
2013-04-29 18:28:42 -07:00
2013-04-01 10:50:58 -07:00
2013-04-30 17:04:03 -07:00
2013-04-30 09:36:50 -07:00
2013-04-30 08:15:40 -07:00
2013-02-27 13:08:35 -05:00
2013-04-08 22:09:23 +02:00
2013-02-21 15:27:22 -08:00
2013-04-30 09:36:50 -07:00
2013-02-27 19:10:15 -08:00
2013-04-18 08:54:22 -07:00
2013-04-30 10:00:49 -07:00
2013-04-29 09:30:25 -07:00
2013-04-08 16:50:23 -07:00
2013-02-27 19:10:15 -08:00
2013-04-30 17:04:04 -07:00
2013-04-29 09:40:35 -07:00
2013-04-30 09:36:50 -07:00
2013-04-30 09:37:55 -07:00
2013-03-01 13:39:00 -08:00
2013-04-30 08:41:21 -07:00
2013-04-29 11:34:17 -07:00
2013-04-05 17:45:11 +03:00
2013-04-30 09:36:50 -07:00
2013-02-26 20:16:07 -08:00
2013-03-15 10:55:31 -04:00
2013-04-02 19:22:16 +01:00
2013-04-29 18:28:41 -07:00
2013-04-19 09:15:13 -07:00
2013-04-30 08:40:35 -07:00
2013-03-15 12:23:09 -07:00
2013-04-30 09:36:50 -07:00
2013-04-30 09:36:50 -07:00
2013-02-26 09:29:02 -08:00
2013-04-29 18:28:43 -07:00
2013-02-23 17:09:55 -08:00
2013-03-04 14:23:11 +01:00
2013-04-18 09:00:26 -07:00
2013-04-30 09:58:16 -07:00
2013-03-25 13:18:13 -07:00
2013-02-27 19:10:23 -08:00
2013-04-29 16:32:25 -07:00
2013-04-30 09:36:50 -07:00
2013-04-29 18:28:42 -07:00
2013-04-19 10:05:39 -07:00
2013-04-30 10:10:48 -07:00
2013-04-01 00:52:42 +02:00
2013-04-17 12:28:57 -03:00
2013-03-03 19:36:31 -08:00
2013-02-26 20:16:07 -08:00
2013-03-25 10:42:06 -07:00
2013-04-29 09:30:25 -07:00
2013-02-21 17:40:58 -08:00
2013-04-26 17:01:35 +02:00
2013-04-18 15:14:34 -07:00
2013-03-04 14:23:40 +01:00
2013-04-30 09:36:50 -07:00
2013-02-27 19:10:23 -08:00
2013-02-26 09:34:29 -08:00
2013-04-28 02:13:50 +01:00
2013-04-30 09:36:50 -07:00
2013-04-29 18:28:13 -07:00
2013-04-30 09:36:50 -07:00
2013-04-29 12:16:17 -07:00
2013-03-31 19:29:12 -04:00
2013-04-30 09:36:50 -07:00
2013-04-29 16:38:41 -07:00
2013-04-10 10:31:26 -04:00
2013-03-25 10:39:40 -07:00
2013-04-30 17:04:03 -07:00
2013-04-11 01:48:49 -07:00
2013-03-11 23:09:29 +08:00
2013-04-29 12:16:17 -07:00
2013-03-29 09:08:22 -07:00
2013-04-30 17:04:00 -07:00
2013-04-29 18:28:43 -07:00
2013-04-29 09:30:25 -07:00
2013-04-12 15:26:42 -07:00
2013-04-30 09:36:50 -07:00
2013-02-26 14:49:12 -08:00
2013-02-14 09:24:14 -08:00
2013-03-26 09:19:02 -07:00
2013-04-14 09:09:10 +02:00
2013-04-30 17:04:01 -07:00
2013-02-22 23:31:31 -05:00
2013-03-25 10:33:56 -07:00
2013-04-29 12:19:23 -07:00