diff options
| author | Sebastian Andrzej Siewior <[email protected]> | 2025-04-04 13:31:16 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2025-05-05 13:34:49 +0000 |
| commit | 94cff94634e506a4a44684bee1875d2dbf782722 (patch) | |
| tree | 5ec104f7995e500fb45117ac58a139d6e0b1405a /lib/find_bit.c | |
| parent | arm64: vdso: Work around invalid absolute relocations from GCC (diff) | |
| download | kernel-94cff94634e506a4a44684bee1875d2dbf782722.tar.gz kernel-94cff94634e506a4a44684bee1875d2dbf782722.zip | |
clocksource/i8253: Use raw_spinlock_irqsave() in clockevent_i8253_disable()
On x86 during boot, clockevent_i8253_disable() can be invoked via
x86_late_time_init -> hpet_time_init() -> pit_timer_init() which happens
with enabled interrupts.
If some of the old i8253 hardware is actually used then lockdep will notice
that i8253_lock is used in hard interrupt context. This causes lockdep to
complain because it observed the lock being acquired with interrupts
enabled and in hard interrupt context.
Make clockevent_i8253_disable() acquire the lock with
raw_spinlock_irqsave() to cure this.
[ tglx: Massage change log and use guard() ]
Fixes: c8c4076723dac ("x86/timer: Skip PIT initialization on modern chipsets")
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'lib/find_bit.c')
0 files changed, 0 insertions, 0 deletions
