Re: [PATCH v6 19/21] timer: Implement the hierarchical pull model

From: Sebastian Siewior
Date: Thu May 11 2023 - 12:57:00 EST


On 2023-05-10 09:28:15 [+0200], Anna-Maria Behnsen wrote:
> diff --git a/kernel/time/timer.c b/kernel/time/timer.c
> --- a/kernel/time/timer.c
> +++ b/kernel/time/timer.c
> @@ -2240,6 +2278,15 @@ static void run_timer_base(int index)
> __run_timer_base(base);
> }
>
> +#ifdef CONFIG_SMP
&& CONFIG_NO_HZ_COMMON

> +void timer_expire_remote(unsigned int cpu)
> +{
> + struct timer_base *base = per_cpu_ptr(&timer_bases[BASE_GLOBAL], cpu);
> +
> + __run_timer_base(base);
> +}
> +#endif
> +
> /*
> * This function runs timers and the timer-tq in bottom half context.
> */

Sebastian