Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Kernel v2.3.49 /kernel/sched.c

Filename:/kernel/sched.c
Lines Added:2
Lines Deleted:4
Also changed in: (Previous) 2.3.48  2.3.47  2.3.43  2.3.41  2.3.40  2.3.38 
(Following) 2.3.99-pre3  2.3.99-pre4  2.3.99-pre6  2.3.99-pre7  2.5.49  2.5.49-ac1 

Location
[  2.3.49
  [  kernel
     o  sched.c

Patch

diff -u --recursive --new-file v2.3.48/linux/kernel/sched.c linux/kernel/sched.c
--- v2.3.48/linux/kernel/sched.c   Sat Feb 26 22:32:07 2000
+++ linux/kernel/sched.c   Mon Feb 28 07:41:14 2000
@@ -228,13 +228,11 @@
    /*
     * We will get here often - or in the high CPU contention
     * case. No CPU is idle and this process is either lowprio or
-    * the preferred CPU is highprio. Try to preemt some other CPU
+    * the preferred CPU is highprio. Try to preempt some other CPU
     * only if it's RT or if it's iteractive and the preferred
     * cpu won't reschedule shortly.
     */
-   if ((p->avg_slice < cacheflush_time && cpu_curr(best_cpu)->avg_slice > cacheflush_time) ||
-       p->policy != SCHED_OTHER)
-   {
+   if (p->avg_slice < cacheflush_time || (p->policy & ~SCHED_YIELD) != SCHED_OTHER) {
       for (i = smp_num_cpus - 1; i >= 0; i--) {
          cpu = cpu_logical_map(i);
          if (cpu == best_cpu)


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.