Changeset 3cfe2b8 in mainline for kernel/test/synch/rcu1.c


Ignore:
Timestamp:
2018-09-07T16:01:50Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c53e813
Parents:
5f1d850
Message:

Convert atomic_t to atomic_size_t (6): Replace atomic_count_t with size_t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/synch/rcu1.c

    r5f1d850 r3cfe2b8  
    361361typedef struct {
    362362        rcu_item_t rcu;
    363         atomic_count_t start_time;
     363        size_t start_time;
    364364} seq_item_t;
    365365
     
    368368
    369369static atomic_t cur_time = { 1 };
    370 static atomic_count_t max_upd_done_time = { 0 };
     370static size_t max_upd_done_time = { 0 };
    371371
    372372static void seq_cb(rcu_item_t *rcu_item)
     
    399399                for (size_t i = 0; i < work->read_cnt; ++i) {
    400400                        rcu_read_lock();
    401                         atomic_count_t start_time = atomic_postinc(&cur_time);
     401                        size_t start_time = atomic_postinc(&cur_time);
    402402
    403403                        for (volatile size_t d = 0; d < 10 * i; ++d) {
Note: See TracChangeset for help on using the changeset viewer.