aboutsummaryrefslogtreecommitdiffstats
path: root/arch/riscv
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2020-10-28 12:28:42 +0800
committerPalmer Dabbelt <palmerdabbelt@google.com>2020-11-20 18:02:53 -0800
commit31564b8b6dbaf9035d27131982d3296c10742baa (patch)
tree6b72baf333debcaa2e14d62dd36ab5c40b97db1a /arch/riscv
parentriscv: Enable CMA support (diff)
downloadlinux-dev-31564b8b6dbaf9035d27131982d3296c10742baa.tar.xz
linux-dev-31564b8b6dbaf9035d27131982d3296c10742baa.zip
riscv: Add HAVE_IRQ_TIME_ACCOUNTING
RISCV_TIMER/CLINT_TIMER is required for RISC-V system, and it provides sched_clock, which allow us to enable IRQ_TIME_ACCOUNTING. Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r--arch/riscv/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 44377fd7860e..dfbc1351ee62 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -68,6 +68,7 @@ config RISCV
select HAVE_FUTEX_CMPXCHG if FUTEX
select HAVE_GCC_PLUGINS
select HAVE_GENERIC_VDSO if MMU && 64BIT
+ select HAVE_IRQ_TIME_ACCOUNTING
select HAVE_PCI
select HAVE_PERF_EVENTS
select HAVE_PERF_REGS