From f22b6ede06ce46b730aa296768447e481161620f Mon Sep 17 00:00:00 2001 From: Vladislav Sytchenko Date: Sun, 28 Feb 2021 19:10:56 -0500 Subject: [PATCH] SWDEV-232428 - Fix typo from ac53942 Change-Id: Iec1f07e04ca3ae8ad72d38034bc136b59eb89dfe [ROCm/clr commit: 8c4cf8c1b06482afe0241ae2bcb0ccf9a7025211] --- projects/clr/rocclr/device/devhostcall.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/clr/rocclr/device/devhostcall.cpp b/projects/clr/rocclr/device/devhostcall.cpp index 7f74cc8eb9..8577abc01e 100644 --- a/projects/clr/rocclr/device/devhostcall.cpp +++ b/projects/clr/rocclr/device/devhostcall.cpp @@ -101,7 +101,7 @@ class HostcallBuffer { /** Stack of free packets. Uses tagged pointers. */ uint64_t free_stack_; /** Stack of ready packets. Uses tagged pointers */ - std::atomic ready_stack_; + std::atomic ready_stack_; /** Mask for accessing the packet index in the tagged pointer. */ uint64_t index_mask_; @@ -176,7 +176,7 @@ void HostcallBuffer::processPackets(MessageHandler& messages) { // Grab the entire ready stack and set the top to 0. New requests from the // device will continue pushing on the stack while we process the packets that // we have grabbed. - uint64_t ready_stack = std::atomic_exchange_explicit(&ready_stack_, static_cast(0), std::memory_order_acquire); + uint64_t ready_stack = std::atomic_exchange_explicit(&ready_stack_, static_cast(0), std::memory_order_acquire); if (!ready_stack) { return; }