Changeset 09ab0a9a in mainline for kernel/test/synch/rcu1.c


Ignore:
Timestamp:
2018-09-13T12:05:53Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cc74cb5
Parents:
b2aaaa0
git-author:
Jiri Svoboda <jiri@…> (2018-09-13 07:09:46)
git-committer:
Jiri Svoboda <jiri@…> (2018-09-13 12:05:53)
Message:

Fix vertical spacing with new Ccheck revision.

File:
1 edited

Legend:

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

    rb2aaaa0 r09ab0a9a  
    4040#include <synch/rcu.h>
    4141
    42 
    4342#define MAX_THREADS 32
    4443
     
    134133}
    135134
    136 
    137135static void join_one(void)
    138136{
     
    150148/*-------------------------------------------------------------------*/
    151149
    152 
    153150static void nop_reader(void *arg)
    154151{
     
    195192/*-------------------------------------------------------------------*/
    196193
    197 
    198 
    199194static void long_reader(void *arg)
    200195{
     
    236231
    237232/*-------------------------------------------------------------------*/
    238 
    239233
    240234static atomic_t nop_callbacks_cnt = 0;
     
    363357        size_t start_time;
    364358} seq_item_t;
    365 
    366359
    367360static errno_t seq_test_result = EOK;
     
    460453        get_seq(0, total_cnt, get_thread_cnt(), read_cnt);
    461454
    462 
    463455        for (size_t i = 0; i < get_thread_cnt(); ++i) {
    464456                item[i].update_cnt = total_cnt - read_cnt[i];
     
    496488
    497489/*-------------------------------------------------------------------*/
    498 
    499490
    500491static void reader_unlocked(rcu_item_t *item)
     
    555546        errno_t result;
    556547} preempt_t;
    557 
    558548
    559549static void preempted_unlocked(rcu_item_t *item)
     
    607597        TPRINTF("}reader_inside_cur\n");
    608598}
    609 
    610599
    611600static void preempted_reader_cur(void *arg)
     
    683672}
    684673
    685 
    686674static bool do_one_reader_preempt(void (*f)(void *), const char *err)
    687675{
     
    772760}
    773761
    774 
    775762static bool do_synch(void)
    776763{
     
    800787        rcu_synchronize();
    801788        join_one();
    802 
    803789
    804790        if (synch->reader_done) {
     
    857843} stress_t;
    858844
    859 
    860845static void stress_reader(void *arg)
    861846{
     
    1006991        const char *desc;
    1007992};
    1008 
    1009993
    1010994const char *test_rcu1(void)
Note: See TracChangeset for help on using the changeset viewer.