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

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

Advertisement

Kernel v2.4.19 /kernel/sched.c

Filename:/kernel/sched.c
Lines Added:3
Lines Deleted:3
Also changed in: (Previous) 2.4.19-rc5-ac1  2.4.19-rc5  2.4.19-rc4  2.4.19-rc3-ac5  2.4.19-rc3-ac4  2.4.19-rc3-ac3 
(Following) 2.4.19-ac1  2.4.19-ac2  2.4.19-ac3  2.4.19-ac4  2.4.20-pre1-ac1  2.4.20-pre2 

Location
[  2.4.19
  [  kernel
     o  sched.c

Patch

diff -urN linux-2.4.18/kernel/sched.c linux-2.4.19/kernel/sched.c
--- linux-2.4.18/kernel/sched.c   Fri Dec 21 09:42:04 2001
+++ linux-2.4.19/kernel/sched.c   Fri Aug  2 17:39:46 2002
@@ -556,7 +556,7 @@
 
    spin_lock_prefetch(&runqueue_lock);
 
-   if (!current->active_mm) BUG();
+   BUG_ON(!current->active_mm);
 need_resched_back:
    prev = current;
    this_cpu = prev->processor;
@@ -675,12 +675,12 @@
       struct mm_struct *mm = next->mm;
       struct mm_struct *oldmm = prev->active_mm;
       if (!mm) {
-         if (next->active_mm) BUG();
+         BUG_ON(next->active_mm);
          next->active_mm = oldmm;
          atomic_inc(&oldmm->mm_count);
          enter_lazy_tlb(oldmm, next, this_cpu);
       } else {
-         if (next->active_mm != mm) BUG();
+         BUG_ON(next->active_mm != mm);
          switch_mm(oldmm, mm, next, this_cpu);
       }
 


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