cvs commit: src/sys/kern subr_smp.c

[ Available lists | Index of cvs-src-old | Month of Aug 2010 | Week of 9 Aug 2010 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Attilio Rao <attilio@FreeBSD.org>
Date
9 Aug 2010 00:24:09
Subject
cvs commit: src/sys/kern subr_smp.c
Message-ID
201008090024.o790O8Lx037868@repoman.freebsd.org


[ Hide this part ]
attilio     2010-08-09 00:23:57 UTC

FreeBSD src repository

Modified files:
sys/kern subr_smp.c
Log:
SVN rev 211087 on 2010-08-09 00:23:57Z by attilio

The r208165 fixed a bug related to unsigned integer overflowing for the
number of CPUs detection.
However, that was not mention at all, the problem was not reported, the
patch has not been MFCed and the fix is mostly improper.

Fix the original overflow (caused when 32 CPUs must be detected) by
just using a different mathematical computation (it also makes more
explicit the size of operands involved, which is good in the moment
waiting for a more complete support for a large number of CPUs).

PR: kern/148698
Submitted by: Joe Landers <jlanders at vmware dot com>
Tested by: gianni
MFC after: 10 days

Revision Changes Path
1.221 +1 -4 src/sys/kern/subr_smp.c


Elapsed time: 0.078 seconds