From 1f84048df59f572d566e56b2803c758ddbc96ce3 Mon Sep 17 00:00:00 2001 From: Vasiliy Ulyanov Date: Mon, 13 Jul 2015 18:31:25 +0300 Subject: [PATCH] [FIX] Preload: remove global irq flags With spin_lock_irqsave/spin_unlock_irqrestore flags should be local to the current stack frame. Change-Id: I6244ed720232f3163ff23a8237e61c292f67808d Signed-off-by: Vasiliy Ulyanov --- preload/preload_threads.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/preload/preload_threads.c b/preload/preload_threads.c index 5f0ffc7..6a67829 100644 --- a/preload/preload_threads.c +++ b/preload/preload_threads.c @@ -31,7 +31,6 @@ struct disabled_addr { static LIST_HEAD(thread_slot_list); static spinlock_t slock; -static unsigned long sflags; static inline void __lock_init(void) @@ -41,12 +40,12 @@ 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); } -- 2.7.4