Changeset f0f2a3d in rtems
- Timestamp:
- 11/27/14 13:41:17 (9 years ago)
- Branches:
- 4.10
- Children:
- 0863e8e3
- Parents:
- 7d015db0
- git-author:
- Sebastian Huber <sebastian.huber@…> (11/27/14 13:41:17)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (11/28/14 10:15:18)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libblock/src/bdbuf.c
r7d015db0 rf0f2a3d 2535 2535 rtems_bdbuf_swapout_worker* worker; 2536 2536 bool transfered_buffers = false; 2537 bool sync_active; 2537 2538 2538 2539 rtems_bdbuf_lock_cache (); 2540 2541 /* 2542 * To set this to true you need the cache and the sync lock. 2543 */ 2544 sync_active = bdbuf_cache.sync_active; 2539 2545 2540 2546 /* … … 2547 2553 * sync operations. 2548 2554 */ 2549 if ( bdbuf_cache.sync_active)2555 if (sync_active) 2550 2556 worker = NULL; 2551 2557 else … … 2559 2565 rtems_chain_initialize_empty (&transfer->bds); 2560 2566 transfer->dev = BDBUF_INVALID_DEV; 2561 transfer->syncing = bdbuf_cache.sync_active;2562 2567 transfer->syncing = sync_active; 2568 2563 2569 /* 2564 2570 * When the sync is for a device limit the sync to that device. If the sync … … 2566 2572 * list. This means the dev is BDBUF_INVALID_DEV. 2567 2573 */ 2568 if ( bdbuf_cache.sync_active)2574 if (sync_active) 2569 2575 transfer->dev = bdbuf_cache.sync_device; 2570 2576 2571 2577 /* 2572 2578 * If we have any buffers in the sync queue move them to the modified … … 2585 2591 &bdbuf_cache.modified, 2586 2592 &transfer->bds, 2587 bdbuf_cache.sync_active,2593 sync_active, 2588 2594 update_timers, 2589 2595 timer_delta); … … 2616 2622 } 2617 2623 2618 if ( bdbuf_cache.sync_active && !transfered_buffers)2624 if (sync_active && !transfered_buffers) 2619 2625 { 2620 2626 rtems_id sync_requester;
Note: See TracChangeset
for help on using the changeset viewer.