diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-02-18 08:36:16 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-03-04 13:36:10 +0100 |
commit | 90d8567d34a6d80da04b1cb37b667a3173f584c4 (patch) | |
tree | 221e66b9da1dd9dd79d01e507f0026bfb477b810 /cpukit/score/src/watchdogtick.c | |
parent | score: Add _SMP_Before_multitasking_action() (diff) | |
download | rtems-90d8567d34a6d80da04b1cb37b667a3173f584c4.tar.bz2 |
score: Distribute clock tick to all online CPUs
Update #2554.
Diffstat (limited to 'cpukit/score/src/watchdogtick.c')
-rw-r--r-- | cpukit/score/src/watchdogtick.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cpukit/score/src/watchdogtick.c b/cpukit/score/src/watchdogtick.c index cb68ea2f02..e89c088350 100644 --- a/cpukit/score/src/watchdogtick.c +++ b/cpukit/score/src/watchdogtick.c @@ -22,13 +22,15 @@ #include "config.h" #endif -void _Watchdog_Tick( void ) +void _Watchdog_Tick( Per_CPU_Control *cpu ) { _Assert( !_Thread_Dispatch_is_enabled() ); - _TOD_Tickle_ticks(); + if ( _Per_CPU_Is_boot_processor( cpu ) ) { + _TOD_Tickle_ticks(); - _Watchdog_Tickle_ticks(); + _Watchdog_Tickle_ticks(); - _Scheduler_Tick(); + _Scheduler_Tick(); + } } |