MCPcopy Create free account
hub / github.com/F-Stack/f-stack / spinlock_exit

Function spinlock_exit

freebsd/arm64/arm64/machdep.c:758–771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756}
757
758void
759spinlock_exit(void)
760{
761 struct thread *td;
762 register_t daif;
763
764 td = curthread;
765 daif = td->td_md.md_saved_daif;
766 td->td_md.md_spinlock_count--;
767 if (td->td_md.md_spinlock_count == 0) {
768 critical_exit();
769 intr_restore(daif);
770 }
771}
772
773#ifndef _SYS_SYSPROTO_H_
774struct sigreturn_args {

Callers 1

cpu_idleFunction · 0.70

Calls 2

critical_exitFunction · 0.50
intr_restoreFunction · 0.50

Tested by

no test coverage detected