]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Loongson-3: Fix SMP_ASK_C0COUNT IPI handler
authorHuacai Chen <chenhc@lemote.com>
Thu, 21 Jan 2016 13:09:49 +0000 (21:09 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 22 Jan 2016 00:59:57 +0000 (01:59 +0100)
commit245856304d68f150f224f5cf2f4061d9f9998476
tree032eeea9de09cab6232b0034381378d144127084
parent6f18a93fc39b0f61a7161f49468cd0887b529268
MIPS: Loongson-3: Fix SMP_ASK_C0COUNT IPI handler

When Core-0 handle SMP_ASK_C0COUNT IPI, we should make other cores to
see the result as soon as possible (especially when Store-Fill-Buffer
is enabled). Otherwise, C0_Count syncronization makes no sense.

BTW, array is more suitable than per-cpu variable for syncronization,
and there is a corner case should be avoid: C0_Count of Core-0 can be
really 0.

Signed-off-by: Huacai Chen <chenhc@lemote.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: Fuxin Zhang <zhangfx@lemote.com>
Cc: Zhangjin Wu <wuzhangjin@gmail.com>
Cc: Huacai Chen <chenhc@lemote.com>
Cc: linux-mips@linux-mips.org
Cc: <stable@vger.kernel.org>
Patchwork: https://patchwork.linux-mips.org/patch/12160/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/loongson64/loongson-3/smp.c