Changeset 1b20da0 in mainline for kernel/test/smpcall


Ignore:
Timestamp:
2018-02-28T17:52:03Z (8 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/smpcall/smpcall1.c

    rdf6ded8 r1b20da0  
    3939#include <proc/thread.h>
    4040
    41 /* 
    42  * Maximum total number of smp_calls in the system is: 
    43  *  162000 == 9^2 * 1000 * 2 
     41/*
     42 * Maximum total number of smp_calls in the system is:
     43 *  162000 == 9^2 * 1000 * 2
    4444 *  == MAX_CPUS^2 * ITERATIONS * EACH_CPU_INC_PER_ITER
    4545 */
     
    5454
    5555        size_t *pcall_cnt = (size_t*)p;
    56         /* 
    57          * No synchronization. Tests if smp_calls makes changes 
    58          * visible to the caller. 
     56        /*
     57         * No synchronization. Tests if smp_calls makes changes
     58         * visible to the caller.
    5959         */
    6060        ++*pcall_cnt;
     
    7272                /* Synchronous version. */
    7373                for (unsigned cpu_id = 0; cpu_id < cpu_count; ++cpu_id) {
    74                         /* 
    75                          * smp_call should make changes by inc() visible on this cpu. 
    76                          * As a result we can pass it our pcall_cnt and not worry 
     74                        /*
     75                         * smp_call should make changes by inc() visible on this cpu.
     76                         * As a result we can pass it our pcall_cnt and not worry
    7777                         * about other synchronization.
    7878                         */
     
    8080                }
    8181               
    82                 /* 
    83                  * Async calls run in parallel on different cpus, so passing the 
     82                /*
     83                 * Async calls run in parallel on different cpus, so passing the
    8484                 * same counter would clobber it without additional synchronization.
    8585                 */
     
    120120        /* Create a wired thread on each cpu. */
    121121        for (unsigned int id = 0; id < cpu_count; ++id) {
    122                 thread[id] = thread_create(test_thread, &call_cnt[id], TASK, 
     122                thread[id] = thread_create(test_thread, &call_cnt[id], TASK,
    123123                        THREAD_FLAG_NONE, "smp-call-test");
    124124               
     
    134134        size_t exp_calls_sum = exp_calls * cpu_count;
    135135       
    136         TPRINTF("Running %zu wired threads. Expecting %zu calls. Be patient.\n", 
     136        TPRINTF("Running %zu wired threads. Expecting %zu calls. Be patient.\n",
    137137                running_thread_cnt, exp_calls_sum);
    138138
     
    162162                                TPRINTF("Error: %zu instead of %zu cpu%zu's calls were"
    163163                                        " acknowledged.\n", call_cnt[i], exp_calls, i);
    164                         } 
     164                        }
    165165                }
    166166               
Note: See TracChangeset for help on using the changeset viewer.