diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2010-11-24 19:42:15 +0100 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2010-11-24 19:42:15 +0100 |
commit | 4d658d13c90f14cf3510ca15cafe2f4aa9e23d64 (patch) | |
tree | 77cf85314ed34c6246edd2a1e4fee4277de8169d /arch/tile | |
parent | Merge branch 'master' into for-linus (diff) | |
download | linux-4d658d13c90f14cf3510ca15cafe2f4aa9e23d64.tar.xz linux-4d658d13c90f14cf3510ca15cafe2f4aa9e23d64.zip |
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>
Diffstat (limited to 'arch/tile')
-rw-r--r-- | arch/tile/kernel/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/tile/kernel/setup.c b/arch/tile/kernel/setup.c index fb0b3cbeae14..f18573643ed1 100644 --- a/arch/tile/kernel/setup.c +++ b/arch/tile/kernel/setup.c @@ -840,7 +840,7 @@ static int __init topology_init(void) for_each_online_node(i) register_one_node(i); - for_each_present_cpu(i) + for (i = 0; i < smp_height * smp_width; ++i) register_cpu(&cpu_devices[i], i); return 0; |