aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/sched_ule.c
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2024-07-29 01:40:22 +0000
committerMark Johnston <markj@FreeBSD.org>2024-07-29 01:40:22 +0000
commite24a65528388f4debfb12e936f314f85ba6ac407 (patch)
treefd04aa02202350a88a410a18d254417816524d8e /sys/kern/sched_ule.c
parent8370e9dfa188da4716c209a475e360d2b1a842f7 (diff)
downloadsrc-e24a65528388f4debfb12e936f314f85ba6ac407.tar.gz
src-e24a65528388f4debfb12e936f314f85ba6ac407.zip
thread: Remove kernel stack swapping support, part 4
- Remove the IS_SWAPPED thread inhibitor state. - Remove all uses of TD_IS_SWAPPED() in the kernel. - Remove the TDF_CANSWAP flag. - Remove the P_SWAPPINGOUT and P_SWAPPINGIN flags. Tested by: pho Reviewed by: alc, imp, kib Differential Revision: https://reviews.freebsd.org/D46115
Diffstat (limited to 'sys/kern/sched_ule.c')
-rw-r--r--sys/kern/sched_ule.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index 502802047cd4..39cb648c2216 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -2334,8 +2334,6 @@ sched_sleep(struct thread *td, int prio)
THREAD_LOCK_ASSERT(td, MA_OWNED);
td->td_slptick = ticks;
- if (TD_IS_SUSPENDED(td) || prio >= PSOCK)
- td->td_flags |= TDF_CANSWAP;
if (PRI_BASE(td->td_pri_class) != PRI_TIMESHARE)
return;
if (static_boost == 1 && prio)
@@ -2358,7 +2356,6 @@ sched_wakeup(struct thread *td, int srqflags)
THREAD_LOCK_ASSERT(td, MA_OWNED);
ts = td_get_sched(td);
- td->td_flags &= ~TDF_CANSWAP;
/*
* If we slept for more than a tick update our interactivity and