cregit-Linux how code gets into the kernel

Release 4.11 arch/arm/include/asm/mcs_spinlock.h

#ifndef __ASM_MCS_LOCK_H

#define __ASM_MCS_LOCK_H

#ifdef CONFIG_SMP
#include <asm/spinlock.h>

/* MCS spin-locking. */

#define arch_mcs_spin_lock_contended(lock)				\
do {                                                                    \
	/* Ensure prior stores are observed before we enter wfe. */	\
        smp_mb();                                                       \
        while (!(smp_load_acquire(lock)))                               \
                wfe();                                                  \
} while (0)                                                             \

#define arch_mcs_spin_unlock_contended(lock)                            \
do {                                                                    \
        smp_store_release(lock, 1);                                     \
        dsb_sev();                                                      \
} while (0)

#endif	/* CONFIG_SMP */
#endif	/* __ASM_MCS_LOCK_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Will Deacon29100.00%1100.00%
Total29100.00%1100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.