Changeset 1b20da0 in mainline for kernel/test/synch/workq-test-core.h


Ignore:
Timestamp:
2018-02-28T17:52:03Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3061bc1
Parents:
df6ded8
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
Message:

style: Remove trailing whitespace on non-empty lines, in certain file types.

Command used: tools/srepl '\([^[:space:]]\)\s\+$' '\1' -- *.c *.h *.py *.sh *.s *.S *.ag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/synch/workq-test-core.h

    rdf6ded8 r1b20da0  
    111111                --work->count_down;
    112112
    113                 /* 
    114                  * Enqueue a child if count_down is power-of-2. 
    115                  * Leads to exponential growth. 
     113                /*
     114                 * Enqueue a child if count_down is power-of-2.
     115                 * Leads to exponential growth.
    116116                 */
    117117                if (is_pow2(work->count_down + 1)) {
     
    124124               
    125125                if (!core_workq_enqueue(work_item, reproduce)) {
    126                         if (work->master) 
     126                        if (work->master)
    127127                                TPRINTF("\nErr: Master work item exiting prematurely!\n");
    128128
     
    161161         * k == COUNT_POW
    162162         * 2^k == COUNT + 1
    163          * 
     163         *
    164164         * We have "k" branching points. Therefore:
    165165         * exp_call_cnt == k*2^(k-1) + 2^k == (k + 2) * 2^(k-1)
     
    167167        size_t exp_call_cnt = (COUNT_POW + 2) * (1 << (COUNT_POW - 1));
    168168       
    169         TPRINTF("waves: %d, count_down: %d, total expected calls: %zu\n", 
     169        TPRINTF("waves: %d, count_down: %d, total expected calls: %zu\n",
    170170                WAVES, COUNT, exp_call_cnt * WAVES);
    171171       
     
    179179       
    180180        for (int i = 0; i < WAVES; ++i) {
    181                 while (atomic_get(&call_cnt[i]) < exp_call_cnt 
     181                while (atomic_get(&call_cnt[i]) < exp_call_cnt
    182182                        && sleep_cnt < max_sleep_cnt) {
    183183                        TPRINTF(".");
     
    197197                        TPRINTF("Error: %" PRIua " calls in wave %d, but %zu expected.\n",
    198198                                atomic_get(&call_cnt[i]), i, exp_call_cnt);
    199                 } 
     199                }
    200200        }
    201201       
Note: See TracChangeset for help on using the changeset viewer.