>16/06/2025 08:53, Tomasz Duszynski:
>> +static inline int
>> +pmu_arch_init(void)
>> +{
>> + if (arch_ops && arch_ops->init)
>> + return arch_ops->init();
>
>These are not boolean values, please compare explicitly with NULL.
Okay.
16/06/2025 08:53, Tomasz Duszynski:
> +static inline int
> +pmu_arch_init(void)
> +{
> + if (arch_ops && arch_ops->init)
> + return arch_ops->init();
These are not boolean values, please compare explicitly with NULL.
Replace static per-architecture ops with a callback-based ops
structure. This makes architecture-specific PMU implementations more
modular and easier to extend.
Signed-off-by: Tomasz Duszynski
---
lib/pmu/pmu.c | 17 +
lib/pmu/pmu_arm64.c | 19 +--
lib/p
3 matches
Mail list logo