diff options
author | jhb <jhb@FreeBSD.org> | 2007-02-27 17:23:29 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2007-02-27 17:23:29 +0000 |
commit | 9081d442434a29679b0bafe249708a1bd48bbfde (patch) | |
tree | a0597a39b0c2d93af237d119ce7da913a8a44962 /sys/kern | |
parent | 3a7dab48bd395f66d9af79696af0534c63ae92f2 (diff) | |
download | FreeBSD-src-9081d442434a29679b0bafe249708a1bd48bbfde.zip FreeBSD-src-9081d442434a29679b0bafe249708a1bd48bbfde.tar.gz |
Use pause() rather than tsleep() on stack variables and function pointers.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/sched_4bsd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c index 8cbbbbb..66952ec 100644 --- a/sys/kern/sched_4bsd.c +++ b/sys/kern/sched_4bsd.c @@ -473,11 +473,10 @@ XXX this is broken static void schedcpu_thread(void) { - int nowake; for (;;) { schedcpu(); - tsleep(&nowake, 0, "-", hz); + pause("-", hz); } } |