mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-06-29 13:19:23 +08:00
SLEEPQUEUE(9): SMP only cache line alignment
This commit is contained in:
parent
8d5fc9d52a
commit
1b47c61d2b
@ -151,7 +151,11 @@ struct sleepqueue_chain {
|
|||||||
u_int sc_depth; /* Length of sc_queues. */
|
u_int sc_depth; /* Length of sc_queues. */
|
||||||
u_int sc_max_depth; /* Max length of sc_queues. */
|
u_int sc_max_depth; /* Max length of sc_queues. */
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(__rtems__) && defined(RTEMS_SMP)
|
||||||
} __aligned(CACHE_LINE_SIZE);
|
} __aligned(CACHE_LINE_SIZE);
|
||||||
|
#else /* __rtems__ */
|
||||||
|
}
|
||||||
|
#endif /* __rtems__ */
|
||||||
|
|
||||||
#ifdef SLEEPQUEUE_PROFILING
|
#ifdef SLEEPQUEUE_PROFILING
|
||||||
u_int sleepq_max_depth;
|
u_int sleepq_max_depth;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user