Skip to content

Commit 31564b8

Browse files
Kefeng Wangpalmer-dabbelt
authored andcommitted
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 <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent da81558 commit 31564b8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Documentation/features/time/irq-time-acct/arch-support.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
| openrisc: | TODO |
2424
| parisc: | .. |
2525
| powerpc: | ok |
26-
| riscv: | TODO |
26+
| riscv: | ok |
2727
| s390: | .. |
2828
| sh: | TODO |
2929
| sparc: | .. |

arch/riscv/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ config RISCV
6868
select HAVE_FUTEX_CMPXCHG if FUTEX
6969
select HAVE_GCC_PLUGINS
7070
select HAVE_GENERIC_VDSO if MMU && 64BIT
71+
select HAVE_IRQ_TIME_ACCOUNTING
7172
select HAVE_PCI
7273
select HAVE_PERF_EVENTS
7374
select HAVE_PERF_REGS

0 commit comments

Comments
 (0)