Skip to content

Instantly share code, notes, and snippets.

@ryo
Created February 3, 2021 16:50
Show Gist options
  • Save ryo/9e8c89e21fb16bba1e11eb0aa9059cb3 to your computer and use it in GitHub Desktop.
Save ryo/9e8c89e21fb16bba1e11eb0aa9059cb3 to your computer and use it in GitHub Desktop.
cvs -q diff -u -a -p idle_machdep.S
Index: idle_machdep.S
===================================================================
RCS file: /src/cvs/cvsroot-netbsd/src/sys/arch/aarch64/aarch64/idle_machdep.S,v
retrieving revision 1.6
diff -u -a -p -r1.6 idle_machdep.S
--- idle_machdep.S 12 Aug 2020 13:19:35 -0000 1.6
+++ idle_machdep.S 3 Feb 2021 16:28:38 -0000
@@ -37,6 +37,9 @@
RCSID("$NetBSD: idle_machdep.S,v 1.6 2020/08/12 13:19:35 skrll Exp $");
+#define BUSY_CPUIDLE
+//#define LAZY_CPUIDLE
+
#ifdef ARM_INTR_IMPL
#include ARM_INTR_IMPL
#else
@@ -49,8 +52,10 @@ RCSID("$NetBSD: idle_machdep.S,v 1.6 202
ENTRY(cpu_idle)
-#ifdef LAZY_CPUIDLE
+#ifdef BUSY_CPUIDLE
+ /* nop */
+#elif defined(LAZY_CPUIDLE)
/*
* hardware interrupt -> trap handler -> interrupt handler
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment