diff options
author | jhb <jhb@FreeBSD.org> | 2001-01-20 02:57:59 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-01-20 02:57:59 +0000 |
commit | 5e8c3954d52282fa5693c66145f44041104e925e (patch) | |
tree | 8c94c3c032e169c48636ce74065fdb6974ff3453 | |
parent | ea36052df59c348dde3964aba7a7421e3d8fb1d3 (diff) | |
download | FreeBSD-src-5e8c3954d52282fa5693c66145f44041104e925e.zip FreeBSD-src-5e8c3954d52282fa5693c66145f44041104e925e.tar.gz |
Temporarily disable the printf() for micruptime() going backwards, the
SIGXCPU signal, and killing of processes that exceed their allowed run
time until they can play nice with sched_lock. Right now they are just
potentital panics waiting to happen. The printf() has bitten several
people.
-rw-r--r-- | sys/kern/kern_synch.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index cbef526..d85f379 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -925,9 +925,12 @@ mi_switch() */ microuptime(&new_switchtime); if (timevalcmp(&new_switchtime, PCPU_PTR(switchtime), <)) { +#if 0 + /* XXX: This doesn't play well with sched_lock right now. */ printf("microuptime() went backwards (%ld.%06ld -> %ld.%06ld)\n", PCPU_GET(switchtime.tv_sec), PCPU_GET(switchtime.tv_usec), new_switchtime.tv_sec, new_switchtime.tv_usec); +#endif new_switchtime = PCPU_GET(switchtime); } else { p->p_runtime += (new_switchtime.tv_usec - PCPU_GET(switchtime.tv_usec)) + @@ -935,6 +938,7 @@ mi_switch() (int64_t)1000000; } +#if 0 /* * Check if the process exceeds its cpu resource allocation. * If over max, kill it. @@ -954,6 +958,7 @@ mi_switch() } } } +#endif /* * Pick a new current process and record its start time. |