svn commit: r233212 - projects/armv6/sys/arm/arm
Olivier Houchard
cognet at FreeBSD.org
Mon Mar 19 22:23:07 UTC 2012
Author: cognet
Date: Mon Mar 19 22:23:07 2012
New Revision: 233212
URL: http://svn.freebsd.org/changeset/base/233212
Log:
Forgot those bits when adding NO_EVENTTIMERS
Modified:
projects/armv6/sys/arm/arm/machdep.c
Modified: projects/armv6/sys/arm/arm/machdep.c
==============================================================================
--- projects/armv6/sys/arm/arm/machdep.c Mon Mar 19 22:20:47 2012 (r233211)
+++ projects/armv6/sys/arm/arm/machdep.c Mon Mar 19 22:23:07 2012 (r233212)
@@ -44,6 +44,7 @@
#include "opt_compat.h"
#include "opt_ddb.h"
+#include "opt_timer.h"
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
@@ -349,15 +350,19 @@ void
cpu_idle(int busy)
{
+#ifndef NO_EVENTTIMERS
if (!busy) {
critical_enter();
cpu_idleclock();
}
+#endif
cpu_sleep(0);
+#ifndef NO_EVENTTIMERS
if (!busy) {
cpu_activeclock();
critical_exit();
}
+#endif
}
int
More information about the svn-src-projects
mailing list