aboutsummaryrefslogtreecommitdiff
path: root/kernel/events
diff options
context:
space:
mode:
authorGravatar Davidlohr Bueso <dave@stgolabs.net> 2016-12-14 15:06:46 -0800
committerGravatar Linus Torvalds <torvalds@linux-foundation.org> 2016-12-14 16:04:08 -0800
commitb5fa01a22e4ba9e3ca6de7cb94c3d21e42da449c (patch)
tree2fcea15a5c609e51abf25e6cff6e1630627ed068 /kernel/events
parentipc/sem: use proper list api for pending_list wakeups (diff)
downloadlinux-b5fa01a22e4ba9e3ca6de7cb94c3d21e42da449c.tar.gz
linux-b5fa01a22e4ba9e3ca6de7cb94c3d21e42da449c.tar.bz2
linux-b5fa01a22e4ba9e3ca6de7cb94c3d21e42da449c.zip
ipc/sem: simplify wait-wake loop
Instead of using the reverse goto, we can simplify the flow and make it more language natural by just doing do-while instead. One would hope this is the standard way (or obviously just with a while bucle) that we do wait/wakeup handling in the kernel. The exact same logic is kept, just more indented. [akpm@linux-foundation.org: coding-style fixes] Link: http://lkml.kernel.org/r/1478708774-28826-2-git-send-email-dave@stgolabs.net Signed-off-by: Davidlohr Bueso <dbueso@suse.de> Cc: Manfred Spraul <manfred@colorfullife.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/events')
0 files changed, 0 insertions, 0 deletions