mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-03-15 19:31:32 +00:00
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>
This commit is contained in:
parent
e307ba7d46
commit
042f0c3ea2
1 changed files with 0 additions and 8 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue