source: rtems/cpukit/score/src/watchdog.c @ 1506658c

5
Last change on this file since 1506658c was 1ccbd052, checked in by Sebastian Huber <sebastian.huber@…>, on 04/15/15 at 08:53:29

score: Add Watchdog_Iterator

Rewrite the _Watchdog_Insert(), _Watchdog_Remove() and
_Watchdog_Tickle() functions to use iterator items to synchronize
concurrent operations. This makes it possible to get rid of the global
variables _Watchdog_Sync_level and _Watchdog_Sync_count which are a
blocking point for scalable SMP solutions.

Update #2307.

  • Property mode set to 100644
File size: 659 bytes
Line 
1/**
2 *  @file
3 *
4 *  @brief Watchdog Handler Initialization
5 *  @ingroup ScoreWatchdog
6 */
7
8/*
9 *  Watchdog Handler
10 *
11 *
12 *  COPYRIGHT (c) 1989-1999.
13 *  On-Line Applications Research Corporation (OAR).
14 *
15 *  The license and distribution terms for this file may be
16 *  found in the file LICENSE in this distribution or at
17 *  http://www.rtems.org/license/LICENSE.
18 */
19
20#if HAVE_CONFIG_H
21#include "config.h"
22#endif
23
24#include <rtems/score/watchdogimpl.h>
25
26void _Watchdog_Handler_initialization( void )
27{
28  _Watchdog_Ticks_since_boot = 0;
29
30  _Watchdog_Header_initialize( &_Watchdog_Ticks_header );
31  _Watchdog_Header_initialize( &_Watchdog_Seconds_header );
32}
Note: See TracBrowser for help on using the repository browser.