kitten LWK waitqueue adoptation

This commit is contained in:
Balazs Gerofi
2012-05-06 12:39:39 +09:00
parent 8c34463dd4
commit c3463e7393
5 changed files with 320 additions and 4 deletions

View File

@ -14,9 +14,11 @@
#define PS_RUNNING 0x1
#define PS_INTERRUPTIBLE 0x2
#define PS_UNINTERRUPTIBLE 0x3
#define PS_ZOMBIE 0x4
#define PS_EXITED 0x5
#define PS_UNINTERRUPTIBLE 0x4
#define PS_ZOMBIE 0x8
#define PS_EXITED 0x10
#define PS_NORMAL (PS_INTERRUPTIBLE | PS_UNINTERRUPTIBLE)
struct vm_range {
struct list_head list;
@ -78,5 +80,6 @@ unsigned long extend_process_region(struct process *proc,
void schedule(void);
void runq_add_proc(struct process *proc, int cpu_id);
void runq_del_proc(struct process *proc, int cpu_id);
int sched_wakeup_process(struct process *proc, int valid_states);
#endif