| 756 | } |
| 757 | |
| 758 | void |
| 759 | spinlock_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_ |
| 774 | struct sigreturn_args { |
no test coverage detected