]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/kexec.c
Merge branch 'docs-next' of git://git.lwn.net/linux-2.6
[linux-2.6-omap-h63xx.git] / kernel / kexec.c
index ac0fde7b54d082ee9ee327a0e57a7664f5cb72e7..3fb855ad6aa07fb5e03281aab28a1d163fb7686d 100644 (file)
@@ -1116,7 +1116,7 @@ void crash_save_cpu(struct pt_regs *regs, int cpu)
        struct elf_prstatus prstatus;
        u32 *buf;
 
-       if ((cpu < 0) || (cpu >= NR_CPUS))
+       if ((cpu < 0) || (cpu >= nr_cpu_ids))
                return;
 
        /* Using ELF notes here is opportunistic.