summaryrefslogtreecommitdiff
path: root/crypto/cast6_generic.c
diff options
context:
space:
mode:
authorAtish Patra <atishp@rivosinc.com>2023-02-05 04:15:02 +0300
committerAnup Patel <anup@brainfault.org>2023-02-07 18:05:31 +0300
commit585e351ff359c032ea7ab48d999b252ba09f8051 (patch)
tree044d4851b92f96f89b686c3b2c597d4c3304dc80 /crypto/cast6_generic.c
parentcdeb59bbf19f456253fd257c744b8383f972cf1e (diff)
downloadlinux-585e351ff359c032ea7ab48d999b252ba09f8051.tar.xz
perf: RISC-V: Define helper functions expose hpm counter width and count
KVM module needs to know how many hardware counters and the counter width that the platform supports. Otherwise, it will not be able to show optimal value of virtual counters to the guest. The virtual hardware counters also need to have the same width as the logical hardware counters for simplicity. However, there shouldn't be mapping between virtual hardware counters and logical hardware counters. As we don't support hetergeneous harts or counters with different width as of now, the implementation relies on the counter width of the first available programmable counter. Reviewed-by: Anup Patel <anup@brainfault.org> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Signed-off-by: Atish Patra <atishp@rivosinc.com> Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'crypto/cast6_generic.c')
0 files changed, 0 insertions, 0 deletions