Changeset 14158


Ignore:
Timestamp:
Aug 9, 2010, 7:04:44 AM (9 years ago)
Author:
gb
Message:

In CPU-COUNT on Linux/Solaris?: use #$_SC_NPROCESSORS_CONF. (This
seems to return the actual number of available procesessors, including
any that may be temporarily offline for power-management or similar
reasons.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/level-1/linux-files.lisp

    r13979 r14158  
    20412041            #+(or linux-target solaris-target)
    20422042            (or
    2043              (let* ((n (#_sysconf #$_SC_NPROCESSORS_ONLN)))
     2043             (let* ((n (#_sysconf #$_SC_NPROCESSORS_CONF)))
    20442044               (declare (fixnum n))
    20452045               (if (> n 0) n))
Note: See TracChangeset for help on using the changeset viewer.