aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gpllib/dmi/dmi_cache.c
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2015-08-14 10:20:33 +0200
committerErwan Velu <erwanaliasr1@gmail.com>2015-09-04 17:57:52 +0200
commitbd8ccabb61c76321ee8df5c0fe9754f5008de423 (patch)
tree3d7946bf310b8ad8dbf75c2001c2d08450fd9fe7 /com32/gpllib/dmi/dmi_cache.c
parent87472a3dd1827594832875ba4dab67d1d69b60da (diff)
downloadsyslinux-bd8ccabb61c76321ee8df5c0fe9754f5008de423.tar.gz
syslinux-bd8ccabb61c76321ee8df5c0fe9754f5008de423.tar.xz
syslinux-bd8ccabb61c76321ee8df5c0fe9754f5008de423.zip
gpllib: Updating dmi code
This is a simple rebase of the current code against current dmidecode version. This is pretty lame copy/paste but as we don't have a libification of dmidecode, that does the job. This patch does improve mostly the cpu & ram reporting.
Diffstat (limited to 'com32/gpllib/dmi/dmi_cache.c')
-rw-r--r--com32/gpllib/dmi/dmi_cache.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/com32/gpllib/dmi/dmi_cache.c b/com32/gpllib/dmi/dmi_cache.c
index 67a43d0b..b52eba19 100644
--- a/com32/gpllib/dmi/dmi_cache.c
+++ b/com32/gpllib/dmi/dmi_cache.c
@@ -130,10 +130,11 @@ const char *dmi_cache_associativity(uint8_t code)
"24-way Set-associative",
"32-way Set-associative",
"48-way Set-associative",
- "64-way Set-associative" /* 0x0D */
+ "64-way Set-associative",
+ "20-way Set-associative" /* 0x0E */
};
- if (code >= 0x01 && code <= 0x0D)
+ if (code >= 0x01 && code <= 0x0E)
return type[code - 0x01];
return out_of_spec;
}