1 2 #ifndef USPINLOCK_H 3 #define USPINLOCK_H 4 5 typedef struct { 6 volatile uint32_t lock; 7 } uspinlock_t; 8 9 #if CONFIG_IS_ENABLED(SMP) 10 void u_spin_lock(uspinlock_t *lock); 11 void u_spin_unlock(uspinlock_t *lock); 12 #else 13 static inline void u_spin_lock(uspinlock_t *lock) {} 14 static inline void u_spin_unlock(uspinlock_t *lock) {} 15 #endif 16 17 #endif