diff options
author | avg <avg@FreeBSD.org> | 2010-11-04 08:51:45 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2010-11-04 08:51:45 +0000 |
commit | 18175daafce6733afb1b9a5739461f91eebddac0 (patch) | |
tree | 839812957b76fc936643910f6773c7364af7d89b /libexec | |
parent | fd55e0e68b0492c2a6afef17be172d4f7ea44398 (diff) | |
download | FreeBSD-src-18175daafce6733afb1b9a5739461f91eebddac0.zip FreeBSD-src-18175daafce6733afb1b9a5739461f91eebddac0.tar.gz |
x86 topo_probe: do not probe smp topology if only one cpu is visible
This could lead to a division by zero if hardware is multi-core and/or
multi-threaded, but for some (quite unusual) reason FreeBSD sees only
one logical processor. This could happen, for example, if neither MADT
nor MP Table are presented by BIOS.
Also:
- assert in topo_probe_0x4 that BSP is accounted for
- neither cpu_cores nor cpu_logical should be zero after successful
probing, so either being zero is an indication of failed probing
Reported by: vwe, Dan Allen <danallen46@airwired.net>
Tested by: Dan Allen <danallen46@airwired.net>
MFC after: 3 days
Diffstat (limited to 'libexec')
0 files changed, 0 insertions, 0 deletions