diff options
author | Laurent Licour <laurent@licour.com> | 2011-01-30 20:50:59 +0100 |
---|---|---|
committer | Erwan Velu <erwanaliasr1@gmail.com> | 2011-01-30 20:50:59 +0100 |
commit | 813daa0f83959de7c1ece9381966905a538919db (patch) | |
tree | fe6fa1ad931ebb41e4a9da37610574721b74209a /com32/lua/src | |
parent | 98d58026c4bf38e42adcfbd5f92da29fb582d41a (diff) | |
download | syslinux-813daa0f83959de7c1ece9381966905a538919db.tar.gz |
DMI: Adjusting structures size / Adding cpu core
This patch adds some correction of the dmi structures but also add the
support of the cpu cores/threads.
Diffstat (limited to 'com32/lua/src')
-rw-r--r-- | com32/lua/src/dmi.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/com32/lua/src/dmi.c b/com32/lua/src/dmi.c index d0305333..c8329d33 100644 --- a/com32/lua/src/dmi.c +++ b/com32/lua/src/dmi.c @@ -267,6 +267,18 @@ static int dmi_gettable(lua_State *L) lua_pushstring(L, dmi.processor.id); lua_settable(L,-3); + lua_pushstring(L, "processor.core_count"); + lua_pushnumber(L, dmi.processor.core_count); + lua_settable(L,-3); + + lua_pushstring(L, "processor.core_enabled"); + lua_pushnumber(L, dmi.processor.core_enabled); + lua_settable(L,-3); + + lua_pushstring(L, "processor.thread_count"); + lua_pushnumber(L, dmi.processor.thread_count); + lua_settable(L,-3); + /* set global variable: lua_setglobal(L, "dmitable"); */ /* return number of return values on stack */ |