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

Function spinlock_exit

freebsd/amd64/amd64/machdep.c:2026–2039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2024}
2025
2026void
2027spinlock_exit(void)
2028{
2029 struct thread *td;
2030 register_t flags;
2031
2032 td = curthread;
2033 flags = td->td_md.md_saved_flags;
2034 td->td_md.md_spinlock_count--;
2035 if (td->td_md.md_spinlock_count == 0) {
2036 critical_exit();
2037 intr_restore(flags);
2038 }
2039}
2040
2041/*
2042 * Construct a PCB from a trapframe. This is called from kdb_trap() where

Callers 1

pmap_activateFunction · 0.70

Calls 2

critical_exitFunction · 0.50
intr_restoreFunction · 0.50

Tested by

no test coverage detected