diff options
| author | Jason Wang <jasowang@redhat.com> | 2016-03-04 06:24:51 -0500 |
|---|---|---|
| committer | Alistair Strachan <astrachan@google.com> | 2019-01-15 17:08:33 -0800 |
| commit | 2dd59f910bfddc78e7314782b7d060a74abc57c5 (patch) | |
| tree | 8ddaecb483f80e338e1d28ae4cd6ddef17eb74fc /lib/test-string_helpers.c | |
| parent | a5de7503e90d46d316ead34533190e36e39141a3 (diff) | |
UPSTREAM: vhost: introduce vhost_has_work()
This path introduces a helper which can give a hint for whether or not
there's a work queued in the work list. This could be used for busy
polling code to exit the busy loop.
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 526d3e7ff515582eaf7cf5d9da2a11bf681204e6)
Bug: 121166534
Test: Ran cuttlefish with android-4.4 + VSOCKETS, VMWARE_VMCI_VSOCKETS
Signed-off-by: Alistair Strachan <astrachan@google.com>
Change-Id: I2717a212f888b0d3ea78f1ce0bcc21ec9dee5050
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions
