diff options
Diffstat (limited to 'kernel/sched.c')
| -rw-r--r-- | kernel/sched.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index da55fa3..ff2d036 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -85,7 +85,8 @@ struct task_struct *create_proc(void *bin, size_t len) { } } - /* here we allocate pages to setup the process' + /* + * here we allocate pages to setup the process' * address space. in addition to the pages that * will hold the binary image, the following * pages are allocated: @@ -222,7 +223,7 @@ void reschedule(void) { return; n = ctaskn; - while(1) { + for(;;) { /* check alarms and signals */ for(i = 0; i < NRTASKS; i++) { if(tasks[i].alarm && tasks[i].alarm < ticks) { @@ -288,7 +289,7 @@ void interruptible_sleep_on(struct task_struct **waiting) { t = *waiting; *waiting = ctask; - while(1) { + for(;;) { ctask->state = TSTATE_INTERRUPTIBLE; reschedule(); |
