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/hdt/hdt-menu-summary.c | |
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/hdt/hdt-menu-summary.c')
-rw-r--r-- | com32/hdt/hdt-menu-summary.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/com32/hdt/hdt-menu-summary.c b/com32/hdt/hdt-menu-summary.c index d02f3c30..b9395559 100644 --- a/com32/hdt/hdt-menu-summary.c +++ b/com32/hdt/hdt-menu-summary.c @@ -54,8 +54,12 @@ void compute_summarymenu(struct s_my_menu *menu, struct s_hardware *hardware) char features[SUBMENULEN + 1]; memset(features, 0, sizeof(features)); - sprintf(features, "%d cores, %dK L2 Cache", hardware->cpu.num_cores, - hardware->cpu.l2_cache_size); + if (hardware->dmi.processor.thread_count != 0) + sprintf(buffer, ", %d thread", hardware->dmi.processor.thread_count); + else + buffer[0] = 0x00; + sprintf(features, "%d core%s, %dK L2 Cache", hardware->cpu.num_cores, + buffer, hardware->cpu.l2_cache_size); if (hardware->cpu.flags.lm) strcat(features, ", 64bit"); else |