diff options
| author | Andrew Jones <ajones@ventanamicro.com> | 2023-05-15 13:12:36 +0200 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2023-05-21 16:30:29 +0530 |
| commit | 042f0c3ea25e995a6db93cd64964b816cb8ffba4 (patch) | |
| tree | 25771a88bb45d22ac3c7d8388ff9d66a2445ee26 /lib | |
| parent | e307ba7d464a8280e71195d79cc497e86d59b7fd (diff) | |
| download | opensbi-042f0c3ea25e995a6db93cd64964b816cb8ffba4.zip opensbi-042f0c3ea25e995a6db93cd64964b816cb8ffba4.tar.gz opensbi-042f0c3ea25e995a6db93cd64964b816cb8ffba4.tar.bz2 | |
lib: sbi: pmu: Remove unnecessary probe function
The absence of a probe implementation means that the extension is
always available. Remove the implementation for the PMU extension,
which does no checking, and indeed even has a comment saying it's
always available.
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sbi/sbi_ecall_pmu.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/sbi/sbi_ecall_pmu.c b/lib/sbi/sbi_ecall_pmu.c index b0589d0..1d5d512 100644 --- a/lib/sbi/sbi_ecall_pmu.c +++ b/lib/sbi/sbi_ecall_pmu.c @@ -81,13 +81,6 @@ static int sbi_ecall_pmu_handler(unsigned long extid, unsigned long funcid, return ret; } -static int sbi_ecall_pmu_probe(unsigned long extid, unsigned long *out_val) -{ - /* PMU extension is always enabled */ - *out_val = 1; - return 0; -} - struct sbi_ecall_extension ecall_pmu; static int sbi_ecall_pmu_register_extensions(void) @@ -99,6 +92,5 @@ struct sbi_ecall_extension ecall_pmu = { .extid_start = SBI_EXT_PMU, .extid_end = SBI_EXT_PMU, .register_extensions = sbi_ecall_pmu_register_extensions, - .probe = sbi_ecall_pmu_probe, .handle = sbi_ecall_pmu_handler, }; |
