Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1739966
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 17/25] hrtimer: Implementation of softirq hrtimer handling |
| Date | 2017-09-26 17:10 +0200 |
| Message-ID | <utZEL-6pY-53@gated-at.bofh.it> (permalink) |
| References | <ukwLD-5Ay-3@gated-at.bofh.it> <ukwLD-5Ay-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Aug 31, 2017 at 12:23:42PM -0000, Anna-Maria Gleixner wrote:
> static void __run_hrtimer(struct hrtimer_cpu_base *cpu_base,
> struct hrtimer_clock_base *base,
> - struct hrtimer *timer, ktime_t *now)
> + struct hrtimer *timer, ktime_t *now,
> + bool hardirq)
> {
> enum hrtimer_restart (*fn)(struct hrtimer *);
> int restart;
> @@ -1241,11 +1298,19 @@ static void __run_hrtimer(struct hrtimer
> * protected against migration to a different CPU even if the lock
> * is dropped.
> */
> - raw_spin_unlock(&cpu_base->lock);
> + if (hardirq)
> + raw_spin_unlock(&cpu_base->lock);
> + else
> + raw_spin_unlock_irq(&cpu_base->lock);
> +
> trace_hrtimer_expire_entry(timer, now);
> restart = fn(timer);
> trace_hrtimer_expire_exit(timer);
> - raw_spin_lock(&cpu_base->lock);
> +
> + if (hardirq)
> + raw_spin_lock(&cpu_base->lock);
> + else
> + raw_spin_lock_irq(&cpu_base->lock);
>
That's just nasty...
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH 17/25] hrtimer: Implementation of softirq hrtimer handling Peter Zijlstra <peterz@infradead.org> - 2017-09-26 17:10 +0200
Re: [PATCH 17/25] hrtimer: Implementation of softirq hrtimer handling Anna-Maria Gleixner <anna-maria@linutronix.de> - 2017-09-27 16:30 +0200
Re: [PATCH 17/25] hrtimer: Implementation of softirq hrtimer handling Peter Zijlstra <peterz@infradead.org> - 2017-09-27 18:50 +0200
csiph-web