aboutsummaryrefslogtreecommitdiff
path: root/sys/pc98
diff options
context:
space:
mode:
authorDavide Italiano <davide@FreeBSD.org>2013-02-28 10:46:54 +0000
committerDavide Italiano <davide@FreeBSD.org>2013-02-28 10:46:54 +0000
commitacccf7d8b4896ba5a0f622d846bed66125f5c40a (patch)
tree33c7f3089361e0ab5379fdc8445540c6eeb03ed0 /sys/pc98
parent0f4fc79e2fcc50b027e0fe63887f860cb913a670 (diff)
downloadsrc-acccf7d8b4896ba5a0f622d846bed66125f5c40a.tar.gz
src-acccf7d8b4896ba5a0f622d846bed66125f5c40a.zip
Notes
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/pc98/machdep.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index 3133d1b41ee3..b0d5acd7e387 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -1145,7 +1145,7 @@ SYSCTL_INT(_machdep, OID_AUTO, idle_mwait, CTLFLAG_RW, &idle_mwait,
#define STATE_SLEEPING 0x2
static void
-cpu_idle_hlt(int busy)
+cpu_idle_hlt(sbintime_t sbt)
{
int *state;
@@ -1186,7 +1186,7 @@ cpu_idle_hlt(int busy)
#define MWAIT_C4 0x30
static void
-cpu_idle_mwait(int busy)
+cpu_idle_mwait(sbintime_t sbt)
{
int *state;
@@ -1209,7 +1209,7 @@ cpu_idle_mwait(int busy)
}
static void
-cpu_idle_spin(int busy)
+cpu_idle_spin(sbintime_t sbt)
{
int *state;
int i;
@@ -1229,11 +1229,12 @@ cpu_idle_spin(int busy)
}
}
-void (*cpu_idle_fn)(int) = cpu_idle_hlt;
+void (*cpu_idle_fn)(sbintime_t) = cpu_idle_hlt;
void
cpu_idle(int busy)
{
+ sbintime_t sbt = -1;
CTR2(KTR_SPARE2, "cpu_idle(%d) at %d",
busy, curcpu);
@@ -1251,11 +1252,11 @@ cpu_idle(int busy)
/* If we have time - switch timers into idle mode. */
if (!busy) {
critical_enter();
- cpu_idleclock();
+ sbt = cpu_idleclock();
}
/* Call main idle method. */
- cpu_idle_fn(busy);
+ cpu_idle_fn(sbt);
/* Switch timers mack into active mode. */
if (!busy) {