Files
android_kernel_xiaomi_sm8450/arch/ia64
Sebastian Andrzej Siewior fbb0e4da96 ia64: salinfo: use a waitqueue instead a sema down/up combo
The only purpose of down_try_lock() followed by up() seems to be to wake
up a possible reader. This patch replaces it with a wake-queue. There is
no locking around cpumask_empty() and the test is re-done in case there
was no hit.
With wait_event_interruptible_lock_irq(,&data_saved_lock) we would probably
be able to get rid of the `retry` label. However we still can return CPU
X which is valid now but later (after the lock dropped) the event may
have been removed because the CPU went offline.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Tony Luck <tony.luck@intel.com>
2016-07-25 09:55:32 -07:00
..
2012-03-28 18:30:02 +01:00
2016-04-18 11:18:55 +02:00
2015-06-10 14:26:32 -07:00
2011-03-17 14:02:56 +01:00
2016-05-20 17:58:30 -07:00