Changeset 8addb24a in mainline for kernel/generic/src/synch/spinlock.c


Ignore:
Timestamp:
2023-02-03T17:01:49Z (2 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
aae2869
Parents:
64e9cf4
Message:

Turn spin look hint into a function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/synch/spinlock.c

    r64e9cf4 r8addb24a  
    4949#include <cpu.h>
    5050
    51 #ifndef ARCH_SPIN_HINT
    52 #define ARCH_SPIN_HINT() ((void)0)
    53 #endif
    54 
    5551/** Initialize spinlock
    5652 *
     
    8278
    8379        while (atomic_flag_test_and_set_explicit(&lock->flag, memory_order_acquire)) {
    84                 ARCH_SPIN_HINT();
     80                cpu_spin_hint();
    8581
    8682#ifdef CONFIG_DEBUG_SPINLOCK
Note: See TracChangeset for help on using the changeset viewer.