Re: [PATCH v5 1/4] sched: Define sched_clock_irqtime as static key

From: Michal Koutný
Date: Tue Dec 03 2024 - 05:01:35 EST


On Fri, Nov 08, 2024 at 09:29:01PM GMT, Yafang Shao <laoar.shao@xxxxxxxxx> wrote:
> diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
> index 081519ffab46..0c83ab35256e 100644
> --- a/kernel/sched/sched.h
> +++ b/kernel/sched/sched.h
...
> +#else
> +
> +static inline int irqtime_enabled(void)
> +{
> + return 0;
> +}
> +

You can reuse the removed macro here:

BTW, have you measured whether this change has an effect above rounding
error?

But generally,
Reviewed-by: Michal Koutný <mkoutny@xxxxxxxx>

Attachment: signature.asc
Description: PGP signature