With spin_lock_irqsave/spin_unlock_irqrestore flags
should be local to the current stack frame.
Change-Id: I6244ed720232f3163ff23a8237e61c292f67808d
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
static LIST_HEAD(thread_slot_list);
static spinlock_t slock;
-static unsigned long sflags;
static inline void __lock_init(void)
static inline void __lock(void)
{
- spin_lock_irqsave(&slock, sflags);
+ spin_lock(&slock);
}
static inline void __unlock(void)
{
- spin_unlock_irqrestore(&slock, sflags);
+ spin_unlock(&slock);
}