Skip to content

Commit

Permalink
Specify the memory ordering for ttc_irq_kicked_n.clear()
Browse files Browse the repository at this point in the history
  • Loading branch information
Tosainu committed Sep 20, 2022
1 parent 2753879 commit 322ce44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/r5_0/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static void ttc_irq_handler(void* data) noexcept {
auto ttc = static_cast<XTtcPs*>(data);
const auto status = XTtcPs_GetInterruptStatus(ttc);
if (status & XTTCPS_IXR_INTERVAL_MASK) {
ttc_irq_kicked_n.clear();
ttc_irq_kicked_n.clear(std::memory_order_relaxed);

XTtcPs_ClearInterruptStatus(ttc, XTTCPS_IXR_INTERVAL_MASK);
}
Expand Down

0 comments on commit 322ce44

Please sign in to comment.