Skip to contentSkip to conversation

riscv: Add HAVE_IRQ_TIME_ACCOUNTING

PATCH In review Kefeng Wang 2 participants 3 messages Oct 28, 2020 – Nov 21, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 Documentation/features/time/irq-time-acct/arch-support.txt | 2 +-
 arch/riscv/Kconfig                                         | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
Documentation/features/time/irq-time-acct/arch-support.txt +1 -1
index d9082b91f10e..6fc03deb1c38 100644
@@ -23,7 +23,7 @@
     |    openrisc: | TODO |
     |      parisc: |  ..  |
     |     powerpc: |  ok  |
-    |       riscv: | TODO |
+    |       riscv: |  ok  |
     |        s390: |  ..  |
     |          sh: | TODO |
     |       sparc: |  ..  |
arch/riscv/Kconfig +1 -0
index 44377fd7860e..dfbc1351ee62 100644
@@ -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
Signature · 7 lines
2.26.2


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
#1 lore raw

Any comments, kindly ping...

Quoted 27 lines · Kefeng Wang

RISCV_TIMER/CLINT_TIMER is required for RISC-V system, and it provides sched_clock, which allow us to enable IRQ_TIME_ACCOUNTING.

---
  Documentation/features/time/irq-time-acct/arch-support.txt | 2 +-
  arch/riscv/Kconfig                                         | 1 +
  2 files changed, 2 insertions(+), 1 deletion(-)
Documentation/features/time/irq-time-acct/arch-support.txt +1 -1
index d9082b91f10e..6fc03deb1c38 100644
@@ -23,7 +23,7 @@
      |    openrisc: | TODO |
      |      parisc: |  ..  |
      |     powerpc: |  ok  |
-    |       riscv: | TODO |
+    |       riscv: |  ok  |
      |        s390: |  ..  |
      |          sh: | TODO |
      |       sparc: |  ..  |
arch/riscv/Kconfig +0 -0
index 44377fd7860e..dfbc1351ee62 100644

arch/riscv/Kconfig config RISCV · line 74

Quoted 7 lines
arch/riscv/Kconfig +1 -0
@@ -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

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

maintainer
#2 lore raw
Quoted 1 line · On Thu, 12 Nov 2020 00:56:13 PST (-0800), [email protected] wrote:

Any comments, kindly ping...

I guess I missed this one too. It's now on for-next as well. Thanks!

Quoted 28 lines · Kefeng Wang
Quoted 26 lines

RISCV_TIMER/CLINT_TIMER is required for RISC-V system, and it provides sched_clock, which allow us to enable IRQ_TIME_ACCOUNTING.

---
  Documentation/features/time/irq-time-acct/arch-support.txt | 2 +-
  arch/riscv/Kconfig                                         | 1 +
  2 files changed, 2 insertions(+), 1 deletion(-)
Documentation/features/time/irq-time-acct/arch-support.txt +1 -1
index d9082b91f10e..6fc03deb1c38 100644
@@ -23,7 +23,7 @@
      |    openrisc: | TODO |
      |      parisc: |  ..  |
      |     powerpc: |  ok  |
-    |       riscv: | TODO |
+    |       riscv: |  ok  |
      |        s390: |  ..  |
      |          sh: | TODO |
      |       sparc: |  ..  |
arch/riscv/Kconfig +0 -0
index 44377fd7860e..dfbc1351ee62 100644
Quoted 8 lines

arch/riscv/Kconfig config RISCV · line 74

Quoted 8 lines
arch/riscv/Kconfig +1 -0
@@ -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

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv