#include "synch.h"
#include "interrupt.h"
#include "lib.h"
-#include "malloc.h"
#include "thread.h"
/* One thread in a list. */
old_level = intr_disable ();
if (!list_empty (&sema->waiters))
- thread_ready (list_entry (list_pop_front (&sema->waiters),
- struct thread_elem, elem)->thread);
+ thread_wake (list_entry (list_pop_front (&sema->waiters),
+ struct thread_elem, elem)->thread);
sema->value++;
intr_set_level (old_level);
}