X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=kernel%2Fkexec.c;h=8a6d7b08864ea199108cae686adbe1a8886a56a5;hb=2d07d4d1bba3b141941682fa36cacbe12bbb143b;hp=ac0fde7b54d082ee9ee327a0e57a7664f5cb72e7;hpb=cf76dddb22c019f03ada6479210f894f19bd591b;p=karo-tx-linux.git diff --git a/kernel/kexec.c b/kernel/kexec.c index ac0fde7b54d0..8a6d7b08864e 100644 --- a/kernel/kexec.c +++ b/kernel/kexec.c @@ -934,9 +934,8 @@ struct kimage *kexec_crash_image; static DEFINE_MUTEX(kexec_mutex); -asmlinkage long sys_kexec_load(unsigned long entry, unsigned long nr_segments, - struct kexec_segment __user *segments, - unsigned long flags) +SYSCALL_DEFINE4(kexec_load, unsigned long, entry, unsigned long, nr_segments, + struct kexec_segment __user *, segments, unsigned long, flags) { struct kimage **dest_image, *image; int result; @@ -1116,7 +1115,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.