diff options
author | Clément Léger <cleger@rivosinc.com> | 2025-01-10 14:15:50 +0100 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2025-01-30 10:30:45 +0530 |
commit | 3943ddbaab00247b391128ae0a1f9258d4007f4f (patch) | |
tree | 10b556c86d053a762a301341c1aac87cfee3b71d /lib/utils/cppc/fdt_cppc_rpmi.c | |
parent | bd613dd92113f683052acfb23d9dc8ba60029e0a (diff) | |
download | opensbi-3943ddbaab00247b391128ae0a1f9258d4007f4f.zip opensbi-3943ddbaab00247b391128ae0a1f9258d4007f4f.tar.gz opensbi-3943ddbaab00247b391128ae0a1f9258d4007f4f.tar.bz2 |
lib: sbi: pmu: fix usage of sbi_pmu_irq_bit()
While sbi_pmu_irq_bit() was used to delegate irq to S-mode, LCOFIP usage
was still hardcoded in various places. This led to change the returned
value of sbi_pmu_irq_bit() to be a bit number rather than a bit mask
since it returns an 'int' and we need to obtain the bit number itself to
handle it in the IRQs handlers. Add a similar function to return the
irq mask which can also be used where the mask is required rather than
the bit itself.
Signed-off-by: Clément Léger <cleger@rivosinc.com>
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Diffstat (limited to 'lib/utils/cppc/fdt_cppc_rpmi.c')
0 files changed, 0 insertions, 0 deletions