]> rtime.felk.cvut.cz Git - novaboot.git/commit
Do not use nproc to determine the number of processors
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 15 Dec 2014 15:24:48 +0000 (16:24 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 15 Dec 2014 15:24:48 +0000 (16:24 +0100)
commite68c3abf7bc0dba292da95f9ee3ecc8f6bce2339
treee4c939ef5271dfc3473cc7482117df9ef89b9f28
parent3e037d6f67171f8e34436eca901c608585e7b37a
Do not use nproc to determine the number of processors

On some systems (e.g. with busybox) nproc is not available. Instead use
sysconf(). The only problem is that the _SC_NPROCESSORS_CONF constant is
not defined in the Perl POSIX module. We define it here only for Linux.
novaboot