riscv: Enable generic clockevent broadcast
authorGuo Ren <guoren@linux.alibaba.com>
Sun, 7 Mar 2021 02:24:46 +0000 (10:24 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 17 Mar 2021 03:40:06 +0000 (20:40 -0700)
commit2f100585d04506004b8027ec9bbaee26940a769f
treeb233a8ed0fd161fd007dddf15be230c699ccd9d7
parent9530141455c968938a913d602a236c2a7b0322e1
riscv: Enable generic clockevent broadcast

When percpu-timers are stopped by deep power saving mode, we
need system timer help to broadcast IPI_TIMER.

This is first introduced by broken x86 hardware, where the local apic
timer stops in C3 state. But many other architectures(powerpc, mips,
arm, hexagon, openrisc, sh) have supported the infrastructure to
deal with Power Management issues.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/Kconfig
arch/riscv/kernel/smp.c