From 6860968c3adaf2e8c3cb51124bbdfccef74beeb9 Mon Sep 17 00:00:00 2001 From: Kaleb S KEITHLEY Date: Thu, 18 Feb 2016 11:21:12 -0500 Subject: qemu-block: deprecated/defunct, remove from tree qemu-block xlator is not used by anyone, or so I'm told. It's also substantially out of date. There's little reason to keep it in our sources. (And FedoraProject doesn't like bundled software either.) Change-Id: I4aeb2fdfd962ec6d93de6bae126874121272220a Signed-off-by: Kaleb S KEITHLEY Reviewed-on: http://review.gluster.org/13473 Smoke: Gluster Build System CentOS-regression: Gluster Build System NetBSD-regression: NetBSD Build System Reviewed-by: Shyamsundar Ranganathan Reviewed-by: Jeff Darcy --- contrib/qemu/qemu-coroutine-sleep.c | 39 ------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 contrib/qemu/qemu-coroutine-sleep.c (limited to 'contrib/qemu/qemu-coroutine-sleep.c') diff --git a/contrib/qemu/qemu-coroutine-sleep.c b/contrib/qemu/qemu-coroutine-sleep.c deleted file mode 100644 index 169ce5ccc92..00000000000 --- a/contrib/qemu/qemu-coroutine-sleep.c +++ /dev/null @@ -1,39 +0,0 @@ -/* - * QEMU coroutine sleep - * - * Copyright IBM, Corp. 2011 - * - * Authors: - * Stefan Hajnoczi - * - * This work is licensed under the terms of the GNU LGPL, version 2 or later. - * See the COPYING.LIB file in the top-level directory. - * - */ - -#include "block/coroutine.h" -#include "qemu/timer.h" - -typedef struct CoSleepCB { - QEMUTimer *ts; - Coroutine *co; -} CoSleepCB; - -static void co_sleep_cb(void *opaque) -{ - CoSleepCB *sleep_cb = opaque; - - qemu_coroutine_enter(sleep_cb->co, NULL); -} - -void coroutine_fn co_sleep_ns(QEMUClock *clock, int64_t ns) -{ - CoSleepCB sleep_cb = { - .co = qemu_coroutine_self(), - }; - sleep_cb.ts = qemu_new_timer(clock, SCALE_NS, co_sleep_cb, &sleep_cb); - qemu_mod_timer(sleep_cb.ts, qemu_get_clock_ns(clock) + ns); - qemu_coroutine_yield(); - qemu_del_timer(sleep_cb.ts); - qemu_free_timer(sleep_cb.ts); -} -- cgit