Messages in this thread Patch in this message | | | Date | Fri, 13 Nov 1998 09:29:19 +0100 (CET) | From | Andrea Arcangeli <> | Subject | prev->has_cpu |
| |
Does this patch make sense or I have slept too little this night ;-)?
Index: kernel/sched.c =================================================================== RCS file: /var/cvs/linux/kernel/sched.c,v retrieving revision 1.1.1.1.16.15 diff -u -r1.1.1.1.16.15 sched.c --- sched.c 1998/11/13 07:46:43 1.1.1.1.16.15 +++ sched.c 1998/11/13 08:29:39 @@ -602,16 +602,16 @@ } } -#ifdef __SMP__ - next->has_cpu = 1; - next->processor = this_cpu; -#endif - if (prev != next) { kstat.context_swtch++; get_mmu_context(next); switch_to(prev,next); } + +#ifdef __SMP__ + prev->has_cpu = 1; + prev->processor = this_cpu; +#endif spin_unlock(&scheduler_lock); Andrea Arcangeli
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |