From ebf8053b424a0c6464c4ebd00fe1b2f5a7773d7a Mon Sep 17 00:00:00 2001 From: TuxSH <1922548+TuxSH@users.noreply.github.com> Date: Sun, 2 Feb 2020 01:32:56 +0000 Subject: [PATCH] thermosphere: rewrite condition in debugManagerDoPauseCores --- thermosphere/src/debug_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thermosphere/src/debug_manager.c b/thermosphere/src/debug_manager.c index df425e71a..b01cf054b 100644 --- a/thermosphere/src/debug_manager.c +++ b/thermosphere/src/debug_manager.c @@ -54,7 +54,7 @@ static void debugManagerDoPauseCores(u32 coreList) remainingList &= ~readList; } while (!atomic_compare_exchange_weak(&g_debugManager.pausedCoreList, &readList, desiredList)); - if (remainingList != BIT(currentCoreCtx->coreId)) { + if (remainingList & ~BIT(currentCoreCtx->coreId)) { // We need to notify other cores... u32 otherCores = remainingList & ~BIT(currentCoreCtx->coreId); barrierInit(&g_debugManager.pauseBarrier, otherCores | BIT(currentCoreCtx->coreId));