smbios: Generate type 4 on non-x86 systems
authorAlexander Graf <agraf@suse.de>
Thu, 18 Aug 2016 23:23:28 +0000 (01:23 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 19 Oct 2016 07:01:52 +0000 (09:01 +0200)
commit96476206c54ee9c94e5994d96f52ec9d2063967a
treed666c398f68ffdf4035c27466f999f044eb8ff43
parent94eaa79cecf98300974c99d935ff653c9418de21
smbios: Generate type 4 on non-x86 systems

The type 4 table generation code is very x86 centric today. Refactor things
out into the device model cpu class to allow the tables to get generated for
other architectures as well.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
include/smbios.h
lib/smbios.c