lkml.org 
[lkml]   [2022]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v3] sched: async unthrottling for cfs bandwidth
> @@ -1686,7 +1698,17 @@ static void __run_hrtimer(struct hrtimer_cpu_base *cpu_base,
>
> lockdep_hrtimer_exit(expires_in_hardirq);
> trace_hrtimer_expire_exit(timer);
> - raw_spin_lock_irq(&cpu_base->lock);
> +
> + local_irq_disable();
> +
> + if (restart >= HRTIMER_RESTART_MIGRATE) {
> + int cpu = restart - HRTIMER_RESTART_MIGRATE;

I know this is just a rough draft, but just noting that this wants a
check against MIGRATE_MAX :)

> + if (new_cpu_base != cpu_base) {
> + timer->base = new_base;
> + enqueue_hrtimer(timer, new_base, HRTIMER_MODE_ABS);
> + raw_spin_unlock(&new_cpu_base->lock);

unlock the old base->lock right?

\
 
 \ /
  Last update: 2022-11-29 02:33    [W:0.066 / U:0.780 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site