Ignore:
Timestamp:
2018-04-04T15:42:37Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/smp/sun4v/smp.c

    r47b2d7e3 r1433ecda  
    8888 * stored to the proposed_nrdy variable of the cpu_arch_t struture.
    8989 */
    90 bool calculate_optimal_nrdy(exec_unit_t *exec_unit) {
     90bool calculate_optimal_nrdy(exec_unit_t *exec_unit)
     91{
    9192
    9293        /* calculate the number of threads the core will steal */
     
    103104        for (k = 0; k < exec_unit->strand_count; k++) {
    104105                exec_units->cpus[k]->arch.proposed_nrdy =
    105                         atomic_get(&(exec_unit->cpus[k]->nrdy));
     106                    atomic_get(&(exec_unit->cpus[k]->nrdy));
    106107        }
    107108
     
    112113                unsigned int least_busy = 0;
    113114                unsigned int least_busy_nrdy =
    114                         exec_unit->cpus[0]->arch.proposed_nrdy;
     115                    exec_unit->cpus[0]->arch.proposed_nrdy;
    115116
    116117                /* for each stolen thread, give it to the least busy CPU */
    117118                for (k = 0; k < exec_unit->strand_count; k++) {
    118                         if (exec_unit->cpus[k]->arch.proposed_nrdy
    119                                         < least_busy_nrdy) {
     119                        if (exec_unit->cpus[k]->arch.proposed_nrdy < least_busy_nrdy) {
    120120                                least_busy = k;
    121121                                least_busy_nrdy =
    122                                         exec_unit->cpus[k]->arch.proposed_nrdy;
     122                                    exec_unit->cpus[k]->arch.proposed_nrdy;
    123123                        }
    124124                }
     
    247247                        exec_units[i].strand_count++;
    248248                        max_core_strands =
    249                                 exec_units[i].strand_count > max_core_strands ?
    250                                 exec_units[i].strand_count : max_core_strands;
     249                            exec_units[i].strand_count > max_core_strands ?
     250                            exec_units[i].strand_count : max_core_strands;
    251251
    252252                /* detecting execution unit failed */
Note: See TracChangeset for help on using the changeset viewer.