]> git.baikalelectronics.ru Git - kernel.git/commit
arch/tile: make glibc's sysconf(_SC_NPROCESSORS_CONF) work correctly
authorChris Metcalf <cmetcalf@tilera.com>
Wed, 24 Nov 2010 18:42:15 +0000 (13:42 -0500)
committerChris Metcalf <cmetcalf@tilera.com>
Wed, 24 Nov 2010 18:42:15 +0000 (13:42 -0500)
commit9c83cae8cb83450e1bfda2f0c64b48071d8e4179
tree77cf85314ed34c6246edd2a1e4fee4277de8169d
parent6fdb40f1e967d043dbec05ca49d1bf2da3e840fb
arch/tile: make glibc's sysconf(_SC_NPROCESSORS_CONF) work correctly

glibc assumes that it can count /sys/devices/system/cpu/cpu* to get
the number of configured cpus.  For this to be valid on tile, we need
to generate a "cpu" entry for all cpus, including the ones that are
not currently allocated for Linux's use.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/kernel/setup.c