summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/percpu.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-14 10:47:44 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-12-09 16:37:30 +0100
commitfb17dfb1ad2960d441b02f4e0ab8d3e9acb54be4 (patch)
tree11e198e374e64619c037eac4490a8b56de02790c /cpukit/include/rtems/score/percpu.h
parent0f5fa026ecf28ac5db25a32b60696c929989ed5e (diff)
downloadrtems-fb17dfb1ad2960d441b02f4e0ab8d3e9acb54be4.tar.bz2
Avoid ISR_LOCK_MEMBER() since it confuses Doxygen
If RTEMS_SMP is not defined, then Doxygen adds the comments intended for conditional the lock member to the next member.
Diffstat (limited to 'cpukit/include/rtems/score/percpu.h')
-rw-r--r--cpukit/include/rtems/score/percpu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/include/rtems/score/percpu.h b/cpukit/include/rtems/score/percpu.h
index 0794f15f69..1dfa7f628d 100644
--- a/cpukit/include/rtems/score/percpu.h
+++ b/cpukit/include/rtems/score/percpu.h
@@ -465,10 +465,12 @@ typedef struct Per_CPU_Control {
* @brief Watchdog state for this processor.
*/
struct {
+#if defined(RTEMS_SMP)
/**
* @brief Protects all watchdog operations on this processor.
*/
- ISR_LOCK_MEMBER( Lock )
+ ISR_lock_Control Lock;
+#endif
/**
* @brief Watchdog ticks on this processor used for monotonic clock