freebsd-dev/sys
Andriy Gapon 3b50d59fef 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
2010-11-04 08:51:45 +00:00
..
amd64 x86 topo_probe: do not probe smp topology if only one cpu is visible 2010-11-04 08:51:45 +00:00
arm Try to be a little smart at guessing where _start is located in flash, instead 2010-11-01 21:04:23 +00:00
boot Partially revert r203829; as it turns out what the PowerPC OFW loader did 2010-10-29 20:42:02 +00:00
bsm
cam Make da driver to handle some probably broken Android devices, returning 2010-10-24 18:53:16 +00:00
cddl Bugfix merge from OpenSolaris: 2010-10-26 15:48:03 +00:00
compat Remove stale comment. 2010-10-14 19:30:44 +00:00
conf Shorten long lines. 2010-11-02 05:39:57 +00:00
contrib Merge ACPICA 20101013. 2010-10-13 21:37:02 +00:00
crypto Change two missed instances of 'retq' in aeskeys_i386.S to 'retl', which 2010-10-13 17:55:53 +00:00
ddb One more use for _SIG_VALID. 2010-07-12 10:18:10 +00:00
dev Adjust a comment to clarify why \_SB_ and \_TZ_ are defined as device type 2010-11-03 23:16:35 +00:00
fs Modify nfs_open() in the experimental NFS client to be compatible 2010-10-29 13:46:21 +00:00
gdb there must be only one SYSINIT with SI_SUB_RUN_SCHEDULER+SI_ORDER_ANY order 2010-09-30 17:05:23 +00:00
geom Extend the g_eventlock mutex coverage in one_event() to include setting 2010-11-03 16:19:35 +00:00
gnu The r184588 changed the layout of struct export_args, causing an ABI 2010-10-10 07:05:47 +00:00
i386 x86 topo_probe: do not probe smp topology if only one cpu is visible 2010-11-04 08:51:45 +00:00
ia64 Fix bogus error message from bus_dmamem_alloc() about incorrect alignment. 2010-09-29 21:53:11 +00:00
isa bus_add_child: change type of order parameter to u_int 2010-09-10 11:19:03 +00:00
kern Remove 'softclock_ih' as it is no longer used. 2010-11-03 15:38:52 +00:00
kgssapi
libkern Make the RPC specific __rpc_inet_ntop() and __rpc_inet_pton() general 2010-09-24 15:01:45 +00:00
mips Don't attach the PCI bus driver if the board we're being run on has PCIe. The 2010-11-03 23:29:52 +00:00
modules Add a driver for the Apple Uninorth AGP host bridge found in all PowerPC 2010-10-31 18:27:05 +00:00
net Sync DLTs with the latest pcap version. 2010-10-29 18:41:09 +00:00
net80211 Fix an undefined behaviour if the desired ratectl algo is not available. 2010-10-19 18:49:26 +00:00
netatalk
netgraph When calling panic(), always pass a format string. 2010-10-13 17:21:21 +00:00
netinet Don't spam the console with loaded modules during boot and/or during 2010-11-03 21:10:12 +00:00
netinet6 Make the IPsec SADB embedded route cache a union to be able to hold both the 2010-10-23 20:35:40 +00:00
netipsec Announce both IPsec and UDP Encap (NAT-T) if available for 2010-10-30 18:52:44 +00:00
netipx
netnatm
netncp Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
netsmb Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
nfs Fix the type of the 3rd argument for nm_getinfo so that it works 2010-10-19 11:55:58 +00:00
nfsclient Add missing "readahead" to the nfs_opts list. 2010-10-27 14:08:37 +00:00
nfsserver When readdirplus() is handled on the exported filesystem that does 2010-10-19 08:55:31 +00:00
nlm Modify the NFS clients and the NLM so that the NLM can be used 2010-10-19 00:20:00 +00:00
opencrypto Add support for AES-XTS. 2010-09-23 11:52:32 +00:00
pc98 Move <machine/apicreg.h> to <x86/apicreg.h>. 2010-11-01 18:18:46 +00:00
pci Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
powerpc Fix two mistakes on 32-bit systems. The slbmte code in syscall() is 64-bit 2010-11-03 16:21:47 +00:00
rpc Fix the krpc so that it can handle NFSv3,UDP mounts with a read/write 2010-10-13 00:57:14 +00:00
security Add missing DTrace probe invocation to mac_vnode_check_open; the probe 2010-10-23 16:59:39 +00:00
sparc64 - When resetting pm_active and pm_context of a pmap in pmap_pinit() we 2010-10-29 20:51:30 +00:00
sun4v Just use the sparc64 version of this header rather than duplicating it. 2010-10-08 14:50:58 +00:00
sys Remove 'softclock_ih' as it is no longer used. 2010-11-03 15:38:52 +00:00
teken Make ^L with cons25 and origin mode bit more sane. 2010-08-09 18:07:15 +00:00
tools Add an extra comment to the SDT probes definition. This allows us to get 2010-08-22 11:18:57 +00:00
ufs Bring vfs.ufs.dirhash_maxmem into the age of the fruitbat and make it 2010-10-25 21:46:23 +00:00
vm Correct some format strings used by sysctls. 2010-10-30 18:00:53 +00:00
x86 Cosmetic change to revert one of my earlier ones. 2010-11-02 20:16:41 +00:00
xdr
xen Improve the Xen para-virtualized device infrastructure of FreeBSD: 2010-10-19 20:53:30 +00:00
Makefile