aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/kpilite.h
Commit message (Collapse)AuthorAgeFilesLines
* Use atomic_interrupt_fence() instead of bare __compiler_membar()Konstantin Belousov2021-02-271-3/+2
| | | | | | | | | | | | | | | for the which which definitely use membar to sync with interrupt handlers. libc and rtld uses of __compiler_membar() seems to want compiler barriers proper. The barrier in sched_unpin_lite() after td_pinned decrement seems to be not needed and removed, instead of convertion. Reviewed by: markj MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D28956
* expose sched_{pin,unpin}_lite to tied modulesMatt Macy2018-07-031-1/+1
| | | | Notes: svn path=/head/; revision=335882
* make critical_{enter, exit} inlineMatt Macy2018-07-031-0/+55
Avoid pulling in all of the <sys/proc.h> dependencies by automatically generating a stripped down thread_lite exporting only the fields of interest. The field declarations are type checked against the original and the offsets of the generated result is automatically checked. kib has expressed disagreement and would have preferred to simply use genassym style offsets (which loses type check enforcement). jhb has expressed dislike of it due to header pollution and a duplicate structure. He would have preferred to just have defined thread in _thread.h. Nonetheless, he admits that this is the only viable solution at the moment. The impetus for this came from mjg's D15331: "Inline critical_enter/exit for amd64" Reviewed by: jeff Differential Revision: https://reviews.freebsd.org/D16078 Notes: svn path=/head/; revision=335879