aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2026-01-22 13:27:00 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2026-01-29 18:11:56 +0000
commit1c4e16f6db81254376f4919aede03267fe572aea (patch)
tree0bbd9a58d3041d2eaadeed15ab6531be56b37765
parentc384b35e42ee5712dda6360ffa287c0350055580 (diff)
x86/cpu_machdep.c: unconditionally fence
For !SCHED_ULE, even if the fence is not needed, it is harmless. Reviewed by: olce Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D54831
-rw-r--r--sys/x86/x86/cpu_machdep.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/x86/x86/cpu_machdep.c b/sys/x86/x86/cpu_machdep.c
index 5b4abfe71642..067374be4941 100644
--- a/sys/x86/x86/cpu_machdep.c
+++ b/sys/x86/x86/cpu_machdep.c
@@ -47,7 +47,6 @@
#include "opt_kstack_pages.h"
#include "opt_maxmem.h"
#include "opt_platform.h"
-#include "opt_sched.h"
#ifdef __i386__
#include "opt_apic.h"
#endif
@@ -543,9 +542,7 @@ cpu_idle_enter(int *statep, int newstate)
* is visible before calling cpu_idle_wakeup().
*/
atomic_store_int(statep, newstate);
-#if defined(SCHED_ULE) && defined(SMP)
atomic_thread_fence_seq_cst();
-#endif
/*
* Since we may be in a critical section from cpu_idle(), if