only use CPU_COUNT if it's available
authorSzilard Pall <pszilard@cbr.su.se>
Fri, 9 Nov 2012 01:38:37 +0000 (02:38 +0100)
committerSzilard Pall <pszilard@cbr.su.se>
Fri, 9 Nov 2012 02:12:22 +0000 (03:12 +0100)
commit054d8e1382c6e1ab97d005bffc44b15c0c8e0d40
treec781a67b39a7bef91a8f017b9c3b61278a9c716e
parent4ba7fb33a97a22ffa3950eaed40736380601a4b7
only use CPU_COUNT if it's available

The external affinity detection implemented by a6e1181 uses CPU_COUNT
from sched.h for a consistency check, but this macro is only available
with glibc 2.6 and later. Hence, a check for this macro was needed to
avoid issues with glibc <2.6

Change-Id: I6088972e9a5aabefb2b3fa3b38ac8d4ba32662f7
src/kernel/runner.c