]> git.baikalelectronics.ru Git - kernel.git/commit
sched/wait: Add swq_has_sleeper()
authorDavidlohr Bueso <dave@stgolabs.net>
Wed, 13 Sep 2017 20:08:18 +0000 (13:08 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 15 Sep 2017 14:57:10 +0000 (16:57 +0200)
commitd9d0d15be10abe0fb3d306955ab51e8ff494e826
tree23ff1da546c321e16956cbc2456fc55fe7931008
parent7145f459eb747ad19daf9ce21b05fa8c2374f7b7
sched/wait: Add swq_has_sleeper()

Which is the equivalent of what we have in regular waitqueues.
I'm not crazy about the name, but this also helps us get both
apis closer -- which iirc comes originally from the -net folks.

We also duplicate the comments for the lockless swait_active(),
from wait.h. Future users will make use of this interface.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/swait.h