Re: [PATCH] rwsem generic spinlock: use IRQ save/restore spinlocks

2010-05-05 Thread Kevin Hilman
Kevin Hilman writes: > rwsems can be used with IRQs disabled, particularily in early boot > before IRQs are enabled. Currently the spin_unlock_irq() usage in the > slow-path will unconditionally enable interrupts and cause problems > early in boot where interrupts are not yet initialized or enab

[PATCH] rwsem generic spinlock: use IRQ save/restore spinlocks

2010-04-08 Thread Kevin Hilman
rwsems can be used with IRQs disabled, particularily in early boot before IRQs are enabled. Currently the spin_unlock_irq() usage in the slow-path will unconditionally enable interrupts and cause problems early in boot where interrupts are not yet initialized or enabled. This patch uses save/rest