aboutsummaryrefslogtreecommitdiff
path: root/sys/x86
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2022-07-14 14:23:43 +0000
committerMark Johnston <markj@FreeBSD.org>2022-08-01 14:12:36 +0000
commit20abb8075086dd31fae4ad39e84a44ce429a357e (patch)
treefa0c66b9fd9b0bce0fdeab2835efd5210f923e4f /sys/x86
parenta869b8c5f0ba01b8c7fbc4b486e7b8720b8525ee (diff)
sched_ule: Enable preemption of curthread in the load balancer
The load balancer executes from statclock and periodically tries to move threads among CPUs in order to balance load. It may move a thread to the current CPU (the loader balancer always runs on CPU 0). When it does so, it may need to schedule preemption of the interrupted thread. Use sched_setpreempt() to do so, same as sched_add(). PR: 264867 Reviewed by: mav, kib, jhb Sponsored by: The FreeBSD Foundation (cherry picked from commit 0927ff78147b4d00a75054bbad299946208e1e91)
Diffstat (limited to 'sys/x86')
0 files changed, 0 insertions, 0 deletions