Home
last modified time | relevance | path

Searched refs:use_global_lock (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/ipc/
H A Dsem.c124 unsigned int use_global_lock;/* >0: global lock required */ member
341 if (sma->use_global_lock > 0) { in complexmode_enter()
347 WRITE_ONCE(sma->use_global_lock, USE_GLOBAL_LOCK_HYSTERESIS); in complexmode_enter()
350 WRITE_ONCE(sma->use_global_lock, USE_GLOBAL_LOCK_HYSTERESIS); in complexmode_enter()
371 if (sma->use_global_lock == 1) { in complexmode_tryleave()
374 smp_store_release(&sma->use_global_lock, 0); in complexmode_tryleave()
376 WRITE_ONCE(sma->use_global_lock, in complexmode_tryleave()
377 sma->use_global_lock-1); in complexmode_tryleave()
418 if (!READ_ONCE(sma->use_global_lock)) { in sem_lock()
426 if (!smp_load_acquire(&sma->use_global_lock)) { in sem_lock()
[all …]
/openbmc/linux/Documentation/ABI/testing/
H A Ddebugfs-ec1 What: /sys/kernel/debug/ec/*/{gpe,use_global_lock,io}