X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=kernel%2Fkexec.c;h=3fb855ad6aa07fb5e03281aab28a1d163fb7686d;hb=4ce5f24193cef2e26f182ce708e94ba1f5fafc0c;hp=ac0fde7b54d082ee9ee327a0e57a7664f5cb72e7;hpb=3e1d7a6219ab64e13b10b1a77c0625db9a8bd8db;p=linux-2.6-omap-h63xx.git diff --git a/kernel/kexec.c b/kernel/kexec.c index ac0fde7b54d..3fb855ad6aa 100644 --- a/kernel/kexec.c +++ b/kernel/kexec.c @@ -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.