Skip to content

Instantly share code, notes, and snippets.

@heechul
Created June 29, 2012 15:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heechul/3018644 to your computer and use it in GitHub Desktop.
Save heechul/3018644 to your computer and use it in GitHub Desktop.
static inline void arch_spin_unlock(arch_spinlock_t *lock)
{
1: smp_mb();
__asm__ __volatile__(
2:" str %1, [%0]\n"
:
: "r" (&lock->lock), "r" (0)
: "cc");
3: dsb_sev();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment