Changeset 8565a42 in mainline for kernel/generic/src/cpu/cpu_mask.c


Ignore:
Timestamp:
2018-03-02T20:34:50Z (7 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a1a81f69, d5e5fd1
Parents:
3061bc1 (diff), 34e1206 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:34:50)
git-committer:
GitHub <noreply@…> (2018-03-02 20:34:50)
Message:

Remove all trailing whitespace, everywhere.

See individual commit messages for details.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/cpu/cpu_mask.c

    r3061bc1 r8565a42  
    5555        assert(NULL != cpus);
    5656        assert(cpu_cnt <= config.cpu_count);
    57        
     57
    5858        for (size_t active_word = 0;
    5959                (active_word + 1) * word_bit_cnt <= cpu_cnt;
     
    6262                cpus->mask[active_word] = -1;
    6363        }
    64        
     64
    6565        size_t remaining_bits = (cpu_cnt % word_bit_cnt);
    6666        if (0 < remaining_bits) {
     
    8989{
    9090        assert(cpus);
    91        
     91
    9292        size_t word_cnt = cpu_mask_size() / word_size;
    93                
     93
    9494        for (size_t word = 0; word < word_cnt; ++word) {
    9595                cpus->mask[word] = 0;
     
    102102        size_t word = cpu_id / word_bit_cnt;
    103103        size_t word_pos = cpu_id % word_bit_cnt;
    104        
     104
    105105        cpus->mask[word] |= (1U << word_pos);
    106106}
     
    111111        size_t word = cpu_id / word_bit_cnt;
    112112        size_t word_pos = cpu_id % word_bit_cnt;
    113        
     113
    114114        cpus->mask[word] &= ~(1U << word_pos);
    115115}
     
    120120        size_t word = cpu_id / word_bit_cnt;
    121121        size_t word_pos = cpu_id % word_bit_cnt;
    122        
     122
    123123        return 0 != (cpus->mask[word] & (1U << word_pos));
    124124}
     
    133133                        return false;
    134134        }
    135        
     135
    136136        return true;
    137137}
Note: See TracChangeset for help on using the changeset viewer.