Skip to content

Instantly share code, notes, and snippets.

@colemancda
Created May 21, 2022 04:20
Show Gist options
  • Save colemancda/a7c116250ceb601da5b408a4fd36f239 to your computer and use it in GitHub Desktop.
Save colemancda/a7c116250ceb601da5b408a4fd36f239 to your computer and use it in GitHub Desktop.
libdispatch-5.6.1-armv7
diff --git a/src/shims/yield.c b/src/shims/yield.c
index 43f0017..d0c5fff 100644
--- a/src/shims/yield.c
+++ b/src/shims/yield.c
@@ -36,7 +36,7 @@ void *
_dispatch_wait_for_enqueuer(void **ptr)
{
#if !DISPATCH_HW_CONFIG_UP
-#if defined(__arm__) || defined(__arm64__)
+#if (defined(__arm__) && defined(__APPLE__)) || defined(__arm64__)
int spins = DISPATCH_WAIT_SPINS_WFE;
void *value;
while (unlikely(spins-- > 0)) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment