correct.
> @@ -381,26 +380,22 @@
> #endif
>
> current->nice = 19;
> - schedule();
> - __set_current_state(TASK_INTERRUPTIBLE);
buggy (check cpus_allowed).
> for (;;) {
> -back:
> + schedule();
> + __set_current_state(TASK_INTERRUPTIBLE);
> +
> do {
> do_softirq();
> if (current->need_resched)
> goto preempt;
> } while (softirq_pending(cpu));
> - schedule();
> - __set_current_state(TASK_INTERRUPTIBLE);
> - }
>
> + continue;
> preempt:
> - __set_current_state(TASK_RUNNING);
> - schedule();
> - __set_current_state(TASK_INTERRUPTIBLE);
> - goto back;
> + __set_current_state(TASK_RUNNING);
> + }
> }
you dropped Ingo's optimization (but you resurrected the strictier /proc
statistics).
Andrea
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/