]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
MIPS: CM: WARN on attempt to lock invalid VP, not BUG
authorPaul Burton <paul.burton@imgtec.com>
Fri, 2 Jun 2017 21:48:51 +0000 (14:48 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 29 Jun 2017 00:42:28 +0000 (02:42 +0200)
Rather than using BUG_ON in the case of an invalid attempt to lock
access to a non-zero VP on a pre-CM3 system, use WARN_ON so that we have
even the slightest chance of recovery.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/16194/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/mips-cm.c

index 99bb74dd12ce8291c6e6e82b2f25ce606c31a626..cb0c57f860d468fab42cc60aefc80c1c1efe161a 100644 (file)
@@ -282,7 +282,7 @@ void mips_cm_lock_other(unsigned int core, unsigned int vp)
                spin_lock_irqsave(this_cpu_ptr(&cm_core_lock),
                                  *this_cpu_ptr(&cm_core_lock_flags));
        } else {
-               BUG_ON(vp != 0);
+               WARN_ON(vp != 0);
 
                /*
                 * We only have a GCR_CL_OTHER per core in systems with