HomeFreeBSD

Implement GET_STACK_USAGE on remaining archs

Description

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

Details

Provenance
mhorneAuthored on Nov 25 2021, 4:01 PM
Reviewer
mav
Differential Revision
D32580: Implement GET_STACK_USAGE on remaining archs
Parents
rGb02908b051c8: arm64, powerpc: fix calculation of 'used' in GET_STACK_USAGE
Branches
Unknown
Tags
Unknown