From 693e27d4737ffe68256830be80e5b6d53f9678ae Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 15 Feb 2000 09:02:07 +0000 Subject: [PATCH] Don't try to account for the partial quantum unless the process is curproc. This only makes any difference on SMP, where we used a (potentially very bogus) switchtime from our own CPU to calculate resource usage on another CPU. This should remove some if not all calcru() related warnings on SMP. Approved by: jkh --- sys/kern/kern_resource.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index 0307369bb071..2c6478d075cb 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -509,11 +509,7 @@ calcru(p, up, sp, ip) } tu = p->p_runtime; -#ifdef SMP - if (p->p_oncpu != 0xff) { -#else if (p == curproc) { -#endif /* * Adjust for the current time slice. This is actually fairly * important since the error here is on the order of a time