summaryrefslogtreecommitdiffstats
path: root/cpukit/libblock/src/bdbuf.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-02-28 15:59:04 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-03-13 12:24:18 +0100
commitc42b03f49834b38a4bdcaf84a04638474c0d4216 (patch)
tree472496c89541621d3931b55f9282af3f1c58278f /cpukit/libblock/src/bdbuf.c
parentlibblock: Discard extended partitions (diff)
downloadrtems-c42b03f49834b38a4bdcaf84a04638474c0d4216.tar.bz2
libblock: Remove superfluous volatile qualifier
All these variables are protected by the bdbuf cache mutex.
Diffstat (limited to 'cpukit/libblock/src/bdbuf.c')
-rw-r--r--cpukit/libblock/src/bdbuf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/libblock/src/bdbuf.c b/cpukit/libblock/src/bdbuf.c
index 3a1196c464..53782e80fc 100644
--- a/cpukit/libblock/src/bdbuf.c
+++ b/cpukit/libblock/src/bdbuf.c
@@ -74,7 +74,7 @@ typedef struct rtems_bdbuf_swapout_worker
* idle. */
rtems_id id; /**< The id of the task so we can wake
* it. */
- volatile bool enabled; /**< The worker is enabled. */
+ bool enabled; /**< The worker is enabled. */
rtems_bdbuf_swapout_transfer transfer; /**< The transfer data for this
* thread. */
} rtems_bdbuf_swapout_worker;
@@ -83,7 +83,7 @@ typedef struct rtems_bdbuf_swapout_worker
* Buffer waiters synchronization.
*/
typedef struct rtems_bdbuf_waiters {
- volatile unsigned count;
+ unsigned count;
rtems_id sema;
} rtems_bdbuf_waiters;
@@ -93,7 +93,7 @@ typedef struct rtems_bdbuf_waiters {
typedef struct rtems_bdbuf_cache
{
rtems_id swapout; /**< Swapout task ID */
- volatile bool swapout_enabled; /**< Swapout is only running if
+ bool swapout_enabled; /**< Swapout is only running if
* enabled. Set to false to kill the
* swap out task. It deletes itself. */
rtems_chain_control swapout_workers; /**< The work threads for the swapout
@@ -111,9 +111,9 @@ typedef struct rtems_bdbuf_cache
rtems_id lock; /**< The cache lock. It locks all
* cache data, BD and lists. */
rtems_id sync_lock; /**< Sync calls block writes. */
- volatile bool sync_active; /**< True if a sync is active. */
- volatile rtems_id sync_requester; /**< The sync requester. */
- volatile dev_t sync_device; /**< The device to sync and
+ bool sync_active; /**< True if a sync is active. */
+ rtems_id sync_requester; /**< The sync requester. */
+ dev_t sync_device; /**< The device to sync and
* BDBUF_INVALID_DEV not a device
* sync. */