• Huacai Chen's avatar
    MIPS: Loongson-3: Fix SMP_ASK_C0COUNT IPI handler · 57548432
    Huacai Chen authored
    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: default avatarHuacai 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: default avatarRalf Baechle <ralf@linux-mips.org>
    57548432
smp.c 21.3 KB