diff options
| author | Atish Patra <atish.patra@wdc.com> | 2022-02-18 16:46:58 -0800 |
|---|---|---|
| committer | Palmer Dabbelt <palmer@rivosinc.com> | 2022-03-21 15:01:09 -0700 |
| commit | 4905ec2fb7e6421c14c9fb7276f5aa92f60f2b98 (patch) | |
| tree | cf945df15c4ac3604682bad5a2247141d6af7ade /arch/riscv/kernel/cpu.c | |
| parent | e9991434596f5373dfd75857b445eb92a9253c56 (diff) | |
| download | linux-4905ec2fb7e6421c14c9fb7276f5aa92f60f2b98.tar.gz linux-4905ec2fb7e6421c14c9fb7276f5aa92f60f2b98.tar.bz2 linux-4905ec2fb7e6421c14c9fb7276f5aa92f60f2b98.zip | |
RISC-V: Add sscofpmf extension support
The sscofpmf extension allows counter overflow and filtering for
programmable counters. Enable the perf driver to handle the overflow
interrupt. The overflow interrupt is a hart local interrupt.
Thus, per cpu overflow interrupts are setup as a child under the root
INTC irq domain.
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/kernel/cpu.c')
| -rw-r--r-- | arch/riscv/kernel/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/kernel/cpu.c b/arch/riscv/kernel/cpu.c index fc115e307ef5..c11cb576394d 100644 --- a/arch/riscv/kernel/cpu.c +++ b/arch/riscv/kernel/cpu.c @@ -87,6 +87,7 @@ int riscv_of_parent_hartid(struct device_node *node) * extensions by an underscore. */ static struct riscv_isa_ext_data isa_ext_arr[] = { + __RISCV_ISA_EXT_DATA(sscofpmf, RISCV_ISA_EXT_SSCOFPMF), __RISCV_ISA_EXT_DATA("", RISCV_ISA_EXT_MAX), }; |
