patch-2.4.19 linux-2.4.19/kernel/sched.c
Next file: linux-2.4.19/kernel/signal.c
Previous file: linux-2.4.19/kernel/ptrace.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Fri Aug 2 17:39:46 2002
- Orig file:
linux-2.4.18/kernel/sched.c
- Orig date:
Fri Dec 21 09:42:04 2001
diff -urN linux-2.4.18/kernel/sched.c linux-2.4.19/kernel/sched.c
@@ -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);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)