diff options
| author | Jeff Roberson <jeff@FreeBSD.org> | 2002-10-12 05:37:26 +0000 |
|---|---|---|
| committer | Jeff Roberson <jeff@FreeBSD.org> | 2002-10-12 05:37:26 +0000 |
| commit | 42f851d9583dabdc2f7b6081d04d4ed972f6ec78 (patch) | |
| tree | 644c13d8ab2eb98fa47dcacf07dbda6db8333ee0 | |
| parent | b43179fbe815b81e2d6bb729ffcb08e8f0a143da (diff) | |
Notes
| -rw-r--r-- | sys/pc98/i386/machdep.c | 5 | ||||
| -rw-r--r-- | sys/pc98/pc98/machdep.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index 5513bc0ea38d..b7b0aac48c20 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -69,6 +69,7 @@ #include <sys/reboot.h> #include <sys/callout.h> #include <sys/msgbuf.h> +#include <sys/sched.h> #include <sys/sysent.h> #include <sys/sysctl.h> #include <sys/ucontext.h> @@ -838,7 +839,7 @@ SYSCTL_INT(_machdep, OID_AUTO, cpu_idle_hlt, CTLFLAG_RW, /* * Note that we have to be careful here to avoid a race between checking - * kserunnable() and actually halting. If we don't do this, we may waste + * sched_runnable() and actually halting. If we don't do this, we may waste * the time between calling hlt and the next interrupt even though there * is a runnable process. */ @@ -847,7 +848,7 @@ cpu_idle(void) { if (cpu_idle_hlt) { disable_intr(); - if (kserunnable()) { + if (sched_runnable()) { enable_intr(); } else { /* diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 5513bc0ea38d..b7b0aac48c20 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -69,6 +69,7 @@ #include <sys/reboot.h> #include <sys/callout.h> #include <sys/msgbuf.h> +#include <sys/sched.h> #include <sys/sysent.h> #include <sys/sysctl.h> #include <sys/ucontext.h> @@ -838,7 +839,7 @@ SYSCTL_INT(_machdep, OID_AUTO, cpu_idle_hlt, CTLFLAG_RW, /* * Note that we have to be careful here to avoid a race between checking - * kserunnable() and actually halting. If we don't do this, we may waste + * sched_runnable() and actually halting. If we don't do this, we may waste * the time between calling hlt and the next interrupt even though there * is a runnable process. */ @@ -847,7 +848,7 @@ cpu_idle(void) { if (cpu_idle_hlt) { disable_intr(); - if (kserunnable()) { + if (sched_runnable()) { enable_intr(); } else { /* |
