]> xenbits.xensource.com Git - people/liuw/rumprun.git/commitdiff
put new threads at the end of the thread queue
authorAntti Kantee <pooka@iki.fi>
Mon, 20 Apr 2015 10:54:50 +0000 (10:54 +0000)
committerAntti Kantee <pooka@iki.fi>
Mon, 20 Apr 2015 10:54:50 +0000 (10:54 +0000)
reduces diff with -xen

platform/baremetal/sched.c

index 363cc81852c380010b6a9d8ce74c68add40ac00a..d51ec2b8a41bb762b5056ee4f1605f951eb9ec57 100644 (file)
@@ -299,7 +299,7 @@ bmk_sched_create(const char *name, void *cookie, int joinable,
        thread->bt_wakeup_time = -1;
 
        set_runnable(thread);
-       TAILQ_INSERT_HEAD(&threads, thread, bt_entries);
+       TAILQ_INSERT_TAIL(&threads, thread, bt_entries);
 
        allocothertls(thread);