summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2008-04-25 05:18:50 +0000
committerjeff <jeff@FreeBSD.org>2008-04-25 05:18:50 +0000
commit14b586bf964970197e12228d127a713b7db7abcb (patch)
treeae275695b8c2f48f9a96c11fe4405ef85fe1bc79 /sys/sparc64
parent3cd35a205135ce8a15349a035286650c3452cafd (diff)
downloadFreeBSD-src-14b586bf964970197e12228d127a713b7db7abcb.zip
FreeBSD-src-14b586bf964970197e12228d127a713b7db7abcb.tar.gz
- Add an integer argument to idle to indicate how likely we are to wake
from idle over the next tick. - Add a new MD routine, cpu_wake_idle() to wakeup idle threads who are suspended in cpu specific states. This function can fail and cause the scheduler to fall back to another mechanism (ipi). - Implement support for mwait in cpu_idle() on i386/amd64 machines that support it. mwait is a higher performance way to synchronize cpus as compared to hlt & ipis. - Allow selecting the idle routine by name via sysctl machdep.idle. This replaces machdep.cpu_idle_hlt. Only idle routines supported by the current machine are permitted. Sponsored by: Nokia
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/machdep.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c
index 7d1aa02..35e1fed 100644
--- a/sys/sparc64/sparc64/machdep.c
+++ b/sys/sparc64/sparc64/machdep.c
@@ -750,12 +750,19 @@ sparc64_shutdown_final(void *dummy, int howto)
}
void
-cpu_idle(void)
+cpu_idle(int busy)
{
/* Insert code to halt (until next interrupt) for the idle loop */
}
int
+cpu_idle_wakeup(int cpu)
+{
+
+ return (0);
+}
+
+int
ptrace_set_pc(struct thread *td, u_long addr)
{
OpenPOWER on IntegriCloud