Changeset e535eeb in mainline for kernel/generic/src/console/cmd.c


Ignore:
Timestamp:
2010-04-18T12:28:19Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dec16a2
Parents:
e1b6742
Message:

rename order() to order_suffix(), make it a generic libc string function in user space

File:
1 edited

Legend:

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

    re1b6742 re535eeb  
    10681068        uint64_t ucycles, kcycles;
    10691069        char usuffix, ksuffix;
    1070         order(ucycles1 - ucycles0, &ucycles, &usuffix);
    1071         order(kcycles1 - kcycles0, &kcycles, &ksuffix);
     1070        order_suffix(ucycles1 - ucycles0, &ucycles, &usuffix);
     1071        order_suffix(kcycles1 - kcycles0, &kcycles, &ksuffix);
    10721072               
    10731073        printf("Time: %" PRIu64 "%c user cycles, %" PRIu64 "%c kernel cycles\n",
     
    11301130               
    11311131                data[i] = ucycles1 - ucycles0 + kcycles1 - kcycles0;
    1132                 order(ucycles1 - ucycles0, &ucycles, &usuffix);
    1133                 order(kcycles1 - kcycles0, &kcycles, &ksuffix);
     1132                order_suffix(ucycles1 - ucycles0, &ucycles, &usuffix);
     1133                order_suffix(kcycles1 - kcycles0, &kcycles, &ksuffix);
    11341134                printf("OK (%" PRIu64 "%c user cycles, %" PRIu64 "%c kernel cycles)\n",
    11351135                                ucycles, usuffix, kcycles, ksuffix);
     
    11451145                }
    11461146               
    1147                 order(sum / (uint64_t) cnt, &ucycles, &usuffix);
     1147                order_suffix(sum / (uint64_t) cnt, &ucycles, &usuffix);
    11481148                printf("Average\t\t%" PRIu64 "%c\n", ucycles, usuffix);
    11491149        }
Note: See TracChangeset for help on using the changeset viewer.