X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=arch%2Fcris%2Fkernel%2Fsetup.c;h=b712f4934c4bb1ef8503ce3d3af4c405f1443e06;hb=521c180874dae86f675d23c4eade4dba8b1f2cc8;hp=04d48dd91ddf53b45b05e3f6c7188d7d03741946;hpb=5b39dba5029108800b94a5f4f96e3a05417103ac;p=pandora-kernel.git diff --git a/arch/cris/kernel/setup.c b/arch/cris/kernel/setup.c index 04d48dd91ddf..b712f4934c4b 100644 --- a/arch/cris/kernel/setup.c +++ b/arch/cris/kernel/setup.c @@ -166,7 +166,7 @@ void __init setup_arch(char **cmdline_p) static void *c_start(struct seq_file *m, loff_t *pos) { - return *pos < NR_CPUS ? (void *)(int)(*pos + 1): NULL; + return *pos < nr_cpu_ids ? (void *)(int)(*pos + 1) : NULL; } static void *c_next(struct seq_file *m, void *v, loff_t *pos)