[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] mini-os: Do not use the same wait element twice
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1270534359 -3600 # Node ID 4822f82acec6d36e651f6c205ddf8a8109262423 # Parent 61372a4f4e76ed9cf2845e4d9619a841ad065f26 mini-os: Do not use the same wait element twice To enqueue the kbdfront thread on two separate wait queues, we need two different wait elements. Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx> --- extras/mini-os/kernel.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -r 61372a4f4e76 -r 4822f82acec6 extras/mini-os/kernel.c --- a/extras/mini-os/kernel.c Tue Apr 06 07:11:48 2010 +0100 +++ b/extras/mini-os/kernel.c Tue Apr 06 07:12:39 2010 +0100 @@ -353,6 +353,7 @@ static void kbdfront_thread(void *p) static void kbdfront_thread(void *p) { DEFINE_WAIT(w); + DEFINE_WAIT(w2); int x = WIDTH / 2, y = HEIGHT / 2, z = 0; kbd_dev = init_kbdfront(NULL, 1); @@ -367,7 +368,7 @@ static void kbdfront_thread(void *p) int sleep = 1; add_waiter(w, kbdfront_queue); - add_waiter(w, fbfront_queue); + add_waiter(w2, fbfront_queue); while (kbdfront_receive(kbd_dev, &kbdevent, 1) != 0) { sleep = 0; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |