MIPS: Skip IPI setup if we only have 1 CPU
authorPaul Burton <paul.burton@imgtec.com>
Fri, 2 Jun 2017 21:48:49 +0000 (14:48 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 29 Jun 2017 00:42:27 +0000 (02:42 +0200)
commit9b03d8abe06d92195712fd489b2e8983de27fa68
treefc7de41aff5c54d5c040274b6bd1fd96e7a6af8e
parentf259fe295ef07aafadf3316f58c4ac4eddfeccf1
MIPS: Skip IPI setup if we only have 1 CPU

If we're running on a system with only 1 possible CPU then it makes no
sense to reserve or initialise IPIs since we'll never use them. Avoid
doing so.

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