hrtimers: Convert to raw_spinlocks
Convert locks which cannot be sleeping locks in preempt-rt to raw_spinlocks. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra <peterz@infradead.org> Acked-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
239007b844
commit
ecb49d1a63
4 changed files with 38 additions and 37 deletions
|
@ -84,7 +84,7 @@ print_active_timers(struct seq_file *m, struct hrtimer_clock_base *base,
|
|||
|
||||
next_one:
|
||||
i = 0;
|
||||
spin_lock_irqsave(&base->cpu_base->lock, flags);
|
||||
raw_spin_lock_irqsave(&base->cpu_base->lock, flags);
|
||||
|
||||
curr = base->first;
|
||||
/*
|
||||
|
@ -100,13 +100,13 @@ next_one:
|
|||
|
||||
timer = rb_entry(curr, struct hrtimer, node);
|
||||
tmp = *timer;
|
||||
spin_unlock_irqrestore(&base->cpu_base->lock, flags);
|
||||
raw_spin_unlock_irqrestore(&base->cpu_base->lock, flags);
|
||||
|
||||
print_timer(m, timer, &tmp, i, now);
|
||||
next++;
|
||||
goto next_one;
|
||||
}
|
||||
spin_unlock_irqrestore(&base->cpu_base->lock, flags);
|
||||
raw_spin_unlock_irqrestore(&base->cpu_base->lock, flags);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue