Kick the VMM 2LS when enqueueing a thread
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 5 Aug 2016 00:39:11 +0000 (17:39 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 10 Aug 2016 19:36:04 +0000 (15:36 -0400)
commit79ed782efe5b82202eb3f640e83e6c1cea2b11bd
treeb66d2cb90d1e50cc7e0f7f0973a832a62b7029d5
parentdbda22e8de423ced59e9d6014a3b1fcb728814af
Kick the VMM 2LS when enqueueing a thread

Previously, we'd only run the 2LS logic on sched_entry().  If you
created threads and didn't do something triggering sched_entry(), such
as uthread_sleep_forever(), any system call, take a notify/IPI, etc,
then we'd never run that logic and you could deadlock.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/vmm/sched.c