From cd12bb567cdcd9665a5acdecd6ac8afd9a977003 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Tue, 10 Feb 2015 11:31:52 +0100 Subject: coroutine: Clean up qemu_coroutine_enter() qemu_coroutine_enter() is now the only user of coroutine_swap(). Both functions are short, so inline it. Also, using COROUTINE_YIELD is now even more confusing because this code is never called during qemu_coroutine_yield() any more. In fact, this value is never read back, so we can just introduce a new COROUTINE_ENTER which documents the purpose of the task switch better. Signed-off-by: Kevin Wolf Reviewed-by: Paolo Bonzini --- include/block/coroutine_int.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/block') diff --git a/include/block/coroutine_int.h b/include/block/coroutine_int.h index f133d65..9aa1aae 100644 --- a/include/block/coroutine_int.h +++ b/include/block/coroutine_int.h @@ -31,6 +31,7 @@ typedef enum { COROUTINE_YIELD = 1, COROUTINE_TERMINATE = 2, + COROUTINE_ENTER = 3, } CoroutineAction; struct Coroutine { -- cgit v1.1