Changeset e90cfa6 in mainline


Ignore:
Timestamp:
2018-09-07T16:20:49Z (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:
fc10e1b
Parents:
c53e813
Message:

Clean up some atomic initializations

Location:
kernel
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/console.c

    rc53e813 re90cfa6  
    5353#include <errno.h>
    5454#include <str.h>
     55#include <stdatomic.h>
    5556#include <abi/kio.h>
    5657#include <mm/frame.h> /* SIZE2FRAMES */
     
    6465
    6566/** Kernel log initialized */
    66 static atomic_t kio_inited = { false };
     67static atomic_bool kio_inited = false;
    6768
    6869/** First kernel log characters */
  • kernel/generic/src/lib/halt.c

    rc53e813 re90cfa6  
    4444
    4545/** Halt flag */
    46 atomic_t haltstate = { 0 };
     46atomic_t haltstate = 0;
    4747
    4848/** Halt wrapper
  • kernel/generic/src/log/log.c

    rc53e813 re90cfa6  
    6363
    6464/** Kernel log initialized */
    65 static atomic_t log_inited = { false };
     65static atomic_bool log_inited = false;
    6666
    6767/** Position in the cyclic buffer where the first log entry starts */
  • kernel/test/synch/rcu1.c

    rc53e813 re90cfa6  
    238238
    239239
    240 static atomic_t nop_callbacks_cnt = { 0 };
     240static atomic_t nop_callbacks_cnt = 0;
    241241/* Must be even. */
    242242static const int nop_updater_iters = 10000;
     
    367367static errno_t seq_test_result = EOK;
    368368
    369 static atomic_t cur_time = { 1 };
     369static atomic_t cur_time = 1;
    370370static size_t max_upd_done_time = { 0 };
    371371
Note: See TracChangeset for help on using the changeset viewer.