summaryrefslogtreecommitdiff
path: root/sys/arch/sh
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-09-09 11:57:56 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-09-09 11:57:56 +0000
commit63ebb0bb225b6a1b478a8dc4ed48132be16a3413 (patch)
treed9e9275c7664f6c3adfcf88cf65f5cb68073eb7b /sys/arch/sh
parenta653e8e066a00993759e51594521e4b097394c9d (diff)
Disable page zeroing in the idle loop, as it blasts the entire cache.
Spotted by kettenis
Diffstat (limited to 'sys/arch/sh')
-rw-r--r--sys/arch/sh/sh/locore_c.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/arch/sh/sh/locore_c.c b/sys/arch/sh/sh/locore_c.c
index cb59d66512e..ede226184c7 100644
--- a/sys/arch/sh/sh/locore_c.c
+++ b/sys/arch/sh/sh/locore_c.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore_c.c,v 1.4 2007/05/18 14:41:55 art Exp $ */
+/* $OpenBSD: locore_c.c,v 1.5 2007/09/09 11:57:55 miod Exp $ */
/* $NetBSD: locore_c.c,v 1.13 2006/03/04 01:13:35 uwe Exp $ */
/*-
@@ -117,7 +117,7 @@
#include <sys/sched.h>
#include <sys/proc.h>
-#include <uvm/uvm_extern.h>
+#include <uvm/uvm.h>
#include <sh/locore.h>
#include <sh/cpu.h>
@@ -219,7 +219,10 @@ void
idle()
{
spl0();
- uvm_pageidlezero();
+#if 0
+ if (uvm.page_idle_zero)
+ uvm_pageidlezero();
+#endif
__asm volatile("sleep");
splsched();
}