riscv: Enable idle generic idle loop
authorKefeng Wang <wangkefeng.wang@huawei.com>
Thu, 8 Jul 2021 01:59:48 +0000 (09:59 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 4 Aug 2021 15:49:54 +0000 (08:49 -0700)
Enable generic idle loop to support for hlt/nohlt command line options
to override default idle loop behavior.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/Kconfig

index 1fc5a95df3f4b035fc417182b863cf86f1f764f9..95cb9efa92132e641a1a6daa6acd4a8a3d8c8e17 100644 (file)
@@ -48,6 +48,7 @@ config RISCV
        select GENERIC_CLOCKEVENTS_BROADCAST if SMP
        select GENERIC_EARLY_IOREMAP
        select GENERIC_GETTIMEOFDAY if HAVE_GENERIC_VDSO
+       select GENERIC_IDLE_POLL_SETUP
        select GENERIC_IOREMAP
        select GENERIC_IRQ_MULTI_HANDLER
        select GENERIC_IRQ_SHOW