summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/watchdogimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-07-26 07:53:34 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-07-26 07:53:34 +0200
commit00c620c1a1a8f738a69106c5f0d1a36449cf1a32 (patch)
treeb0944eead71fd6e8e8a4ce5033ceb50042127426 /cpukit/score/include/rtems/score/watchdogimpl.h
parentscore: Add a STATES_DEBUGGER for use by debugging agents to a thread's state. (diff)
downloadrtems-00c620c1a1a8f738a69106c5f0d1a36449cf1a32.tar.bz2
score: Format
Diffstat (limited to 'cpukit/score/include/rtems/score/watchdogimpl.h')
-rw-r--r--cpukit/score/include/rtems/score/watchdogimpl.h32
1 files changed, 15 insertions, 17 deletions
diff --git a/cpukit/score/include/rtems/score/watchdogimpl.h b/cpukit/score/include/rtems/score/watchdogimpl.h
index 0900a1b8e7..7253dc40e4 100644
--- a/cpukit/score/include/rtems/score/watchdogimpl.h
+++ b/cpukit/score/include/rtems/score/watchdogimpl.h
@@ -340,42 +340,40 @@ RTEMS_INLINE_ROUTINE void _Watchdog_Per_CPU_release_critical(
}
RTEMS_INLINE_ROUTINE uint64_t _Watchdog_Per_CPU_insert_relative(
- Watchdog_Control *the_watchdog,
- Per_CPU_Control *cpu,
- Watchdog_Interval ticks
+ Watchdog_Control *the_watchdog,
+ Per_CPU_Control *cpu,
+ Watchdog_Interval ticks
)
{
- ISR_lock_Context lock_context;
- Watchdog_Header *header;
- uint64_t expire;
+ ISR_lock_Context lock_context;
+ Watchdog_Header *header;
+ uint64_t expire;
+
+ header = &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_RELATIVE ];
_Watchdog_Set_CPU( the_watchdog, cpu );
_Watchdog_Per_CPU_acquire_critical( cpu, &lock_context );
-
expire = ticks + cpu->Watchdog.ticks;
- header = &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_RELATIVE ];
-
_Watchdog_Insert(header, the_watchdog, expire);
_Watchdog_Per_CPU_release_critical( cpu, &lock_context );
return expire;
}
RTEMS_INLINE_ROUTINE uint64_t _Watchdog_Per_CPU_insert_absolute(
- Watchdog_Control *the_watchdog,
- Per_CPU_Control *cpu,
- uint64_t expire
+ Watchdog_Control *the_watchdog,
+ Per_CPU_Control *cpu,
+ uint64_t expire
)
{
- ISR_lock_Context lock_context;
- Watchdog_Header *header;
+ ISR_lock_Context lock_context;
+ Watchdog_Header *header;
+
+ header = &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_ABSOLUTE ];
_Watchdog_Set_CPU( the_watchdog, cpu );
_Watchdog_Per_CPU_acquire_critical( cpu, &lock_context );
-
- header = &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_ABSOLUTE ];
-
_Watchdog_Insert(header, the_watchdog, expire);
_Watchdog_Per_CPU_release_critical( cpu, &lock_context );
return expire;