[rtems-libbsd commit] SLEEPQUEUE(9): SMP only cache line alignment
Sebastian Huber
sebh at rtems.org
Fri Dec 14 09:38:06 UTC 2018
Module: rtems-libbsd
Branch: master
Commit: 1b47c61d2b5d63dac7c990cf378726196868ffc4
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=1b47c61d2b5d63dac7c990cf378726196868ffc4
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Dec 14 10:36:10 2018 +0100
SLEEPQUEUE(9): SMP only cache line alignment
---
freebsd/sys/kern/subr_sleepqueue.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/freebsd/sys/kern/subr_sleepqueue.c b/freebsd/sys/kern/subr_sleepqueue.c
index 65bd8dc..6712da5 100644
--- a/freebsd/sys/kern/subr_sleepqueue.c
+++ b/freebsd/sys/kern/subr_sleepqueue.c
@@ -151,7 +151,11 @@ struct sleepqueue_chain {
u_int sc_depth; /* Length of sc_queues. */
u_int sc_max_depth; /* Max length of sc_queues. */
#endif
+#if defined(__rtems__) && defined(RTEMS_SMP)
} __aligned(CACHE_LINE_SIZE);
+#else /* __rtems__ */
+}
+#endif /* __rtems__ */
#ifdef SLEEPQUEUE_PROFILING
u_int sleepq_max_depth;
More information about the vc
mailing list