Changeset c42b03f4 in rtems for cpukit/libblock


Ignore:
Timestamp:
Feb 28, 2012, 2:59:04 PM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
1024561
Parents:
a3170f7
git-author:
Sebastian Huber <sebastian.huber@…> (02/28/12 14:59:04)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/13/12 11:24:18)
Message:

libblock: Remove superfluous volatile qualifier

All these variables are protected by the bdbuf cache mutex.

Location:
cpukit/libblock
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/include/rtems/bdbuf.h

    ra3170f7 rc42b03f4  
    322322  unsigned char*    buffer;     /**< Pointer to the buffer memory area */
    323323
    324   volatile rtems_bdbuf_buf_state state;  /**< State of the buffer. */
    325 
    326   volatile uint32_t  waiters;    /**< The number of threads waiting on this
     324  rtems_bdbuf_buf_state state;           /**< State of the buffer. */
     325
     326  uint32_t waiters;              /**< The number of threads waiting on this
    327327                                  * buffer. */
    328328  rtems_bdbuf_group* group;      /**< Pointer to the group of BDs this BD is
    329329                                  * part of. */
    330   volatile uint32_t  hold_timer; /**< Timer to indicate how long a buffer
     330  uint32_t hold_timer;          /**< Timer to indicate how long a buffer
    331331                                  * has been held in the cache modified. */
    332332
  • cpukit/libblock/src/bdbuf.c

    ra3170f7 rc42b03f4  
    7575  rtems_id                     id;       /**< The id of the task so we can wake
    7676                                          * it. */
    77   volatile bool                enabled;  /**< The worker is enabled. */
     77  bool                         enabled;  /**< The worker is enabled. */
    7878  rtems_bdbuf_swapout_transfer transfer; /**< The transfer data for this
    7979                                          * thread. */
     
    8484 */
    8585typedef struct rtems_bdbuf_waiters {
    86   volatile unsigned count;
     86  unsigned count;
    8787  rtems_id sema;
    8888} rtems_bdbuf_waiters;
     
    9494{
    9595  rtems_id            swapout;           /**< Swapout task ID */
    96   volatile bool       swapout_enabled;   /**< Swapout is only running if
     96  bool                swapout_enabled;   /**< Swapout is only running if
    9797                                          * enabled. Set to false to kill the
    9898                                          * swap out task. It deletes itself. */
     
    112112                                          * cache data, BD and lists. */
    113113  rtems_id            sync_lock;         /**< Sync calls block writes. */
    114   volatile bool       sync_active;       /**< True if a sync is active. */
    115   volatile rtems_id   sync_requester;    /**< The sync requester. */
    116   volatile dev_t      sync_device;       /**< The device to sync and
     114  bool                sync_active;       /**< True if a sync is active. */
     115  rtems_id            sync_requester;    /**< The sync requester. */
     116  dev_t               sync_device;       /**< The device to sync and
    117117                                          * BDBUF_INVALID_DEV not a device
    118118                                          * sync. */
Note: See TracChangeset for help on using the changeset viewer.