[patch] agv_slice not initialized

Andrea Arcangeli (andrea@e-mind.com)
Sun, 3 Jan 1999 18:17:00 +0100 (CET)


I think it will make more sense to not inherit the avg_slice from the parent.

Index: fork.c
===================================================================
RCS file: /var/cvs/linux/kernel/fork.c,v
retrieving revision 1.1.1.1.2.6
diff -u -r1.1.1.1.2.6 fork.c
--- fork.c 1998/12/31 16:56:28 1.1.1.1.2.6
+++ linux/kernel/fork.c 1999/01/03 17:09:56
@@ -542,6 +542,7 @@
#ifdef __SMP__
{
int i;
+ p->avg_slice = 0;
p->has_cpu = 0;
p->processor = NO_PROC_ID;
/* ?? should we just memset this ?? */

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/