oops - only non-smp config ready for now
[linux-2.6.git] / kernel / sched.c
index eeaa858..32b195f 100644 (file)
 #include <linux/times.h>
 #include <linux/acct.h>
 #include <linux/kprobes.h>
-#include <asm/tlb.h>
 
+#include <asm/tlb.h>
 #include <asm/unistd.h>
+
 #include <linux/vs_context.h>
 #include <linux/vs_cvirt.h>
 #include <linux/vs_sched.h>
@@ -2718,7 +2719,7 @@ void scheduler_tick(void)
                 * RR tasks need a special form of timeslice management.
                 * FIFO tasks have no timeslices.
                 */
-               if ((p->policy == SCHED_RR) && !--p->time_slice) {
+               if ((p->policy == SCHED_RR) && vx_need_resched(p)) {
                        p->time_slice = task_timeslice(p);
                        p->first_time_slice = 0;
                        set_tsk_need_resched(p);