git: 6eeba7dbd63c - main - ule: unbreak UP builds
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 16 Jul 2022 12:45:52 UTC
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=6eeba7dbd63c30704a713a2a8cdc5233600ef63b
commit 6eeba7dbd63c30704a713a2a8cdc5233600ef63b
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2022-07-16 12:45:09 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2022-07-16 12:45:09 +0000
ule: unbreak UP builds
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/kern/sched_ule.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index b5ddae868ebb..138cb13e0fbe 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -2137,7 +2137,9 @@ static struct mtx *
sched_switch_migrate(struct tdq *tdq, struct thread *td, int flags)
{
struct tdq *tdn;
+#ifdef SMP
int lowpri;
+#endif
KASSERT(THREAD_CAN_MIGRATE(td) ||
(td_get_sched(td)->ts_flags & TSF_BOUND) != 0,