]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Implement GET_STACK_USAGE on remaining archs
authorMitchell Horne <mhorne@FreeBSD.org>
Thu, 25 Nov 2021 16:01:11 +0000 (12:01 -0400)
committerMitchell Horne <mhorne@FreeBSD.org>
Tue, 7 Dec 2021 18:13:47 +0000 (14:13 -0400)
commit1d640e61358469c17fb0ce340f78104a50b26959
treeb6e937f91100d27624c11469e4ebb452fd151f6c
parenta8adbe528446352a27e774c7c33bea027e7a7c15
Implement GET_STACK_USAGE on remaining archs

This definition enables callers to estimate remaining space on the
kstack, and take action on it. Notably, it enables optimizations in the
GEOM and netgraph subsystems to directly dispatch work items when there
is sufficient stack space, rather than queuing them for a worker thread.

Implement it for riscv, arm, and mips. Remove the #ifdefs, so it will
not go unimplemented elsewhere.

PR: 259157
Reviewed by: mav, kib, markj (previous version)
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32580

(cherry picked from commit 0d2224733e970aaa67a4e1af7b340044adda92f6)
sys/arm/include/proc.h
sys/geom/geom_io.c
sys/mips/include/proc.h
sys/netgraph/ng_base.c
sys/riscv/include/proc.h