git: 088920ccc694 - stable/13 - ule: unbreak UP builds

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Tue, 02 Aug 2022 20:28:10 UTC
The branch stable/13 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=088920ccc6946fc39bf396bf59ed0871d0e9c1a9

commit 088920ccc6946fc39bf396bf59ed0871d0e9c1a9
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2022-07-16 12:45:09 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-08-02 20:27:24 +0000

    ule: unbreak UP builds
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    
    (cherry picked from commit 6eeba7dbd63c30704a713a2a8cdc5233600ef63b)
---
 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 0a830da7e2d5..4cde748ea9b7 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -2128,7 +2128,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,