Changeset 5998


Ignore:
Timestamp:
Mar 7, 2007, 6:45:18 AM (18 years ago)
Author:
Gary Byers
Message:

For #+linux-target, try to use #_sysconf in CPU-COUNT, and fall back
to parsing /proc/cpuinfo only if that fails. (CPU-COUNT is called
early in the cold load, before we can make the file-stream necessary
to do the parsing.)

File:
1 edited

Legend:

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

    r5984 r5998  
    11041104            #+linux-target
    11051105            (or
     1106             (let* ((n (#_sysconf #$_SC_NPROCESSORS_ONLN)))
     1107               (declare (fixnum n))
     1108               (if (> n 0) n))
    11061109             (ignore-errors
    11071110               (with-open-file (p "/proc/cpuinfo")
Note: See TracChangeset for help on using the changeset viewer.