Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-8] src



Module Name:    src
Committed By:   martin
Date:           Sun May 12 09:21:12 UTC 2019

Modified Files:
        src/common/lib/libc/sys [netbsd-8]: cpuset.c
        src/usr.sbin/cpuctl [netbsd-8]: cpuctl.c

Log Message:
Pull up following revision(s) (requested by maxv in ticket #1260):

        common/lib/libc/sys/cpuset.c: revision 1.21
        usr.sbin/cpuctl/cpuctl.c: revision 1.30

Fix bug, the computation of cpuset_nentries was incorrect, we must do +1
to be able to address the last 32 bits.

On a machine with 80 CPUs, this caused "cpuctl identify >64" to return
garbage.

Check the return value of cpuset_set(), to prevent future surprises.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.18.26.1 src/common/lib/libc/sys/cpuset.c
cvs rdiff -u -r1.28 -r1.28.8.1 src/usr.sbin/cpuctl/cpuctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index