Changeset 1433ecda in mainline for kernel/generic/src/cpu


Ignore:
Timestamp:
2018-04-04T15:42:37Z (7 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.

Location:
kernel/generic/src/cpu
Files:
2 edited

Legend:

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

    r47b2d7e3 r1433ecda  
    5959 *
    6060 */
    61 void cpu_init(void) {
     61void cpu_init(void)
     62{
    6263#ifdef CONFIG_SMP
    6364        if (config.cpu_active == 1) {
    6465#endif /* CONFIG_SMP */
    6566
    66                 cpus = (cpu_t *) malloc(sizeof(cpu_t) * config.cpu_count,
     67                cpus = (cpu_t *) malloc(sizeof(cpu_t) *config.cpu_count,
    6768                    FRAME_ATOMIC);
    6869                if (!cpus)
     
    7071
    7172                /* Initialize everything */
    72                 memsetb(cpus, sizeof(cpu_t) * config.cpu_count, 0);
     73                memsetb(cpus, sizeof(cpu_t) *config.cpu_count, 0);
    7374
    7475                size_t i;
  • kernel/generic/src/cpu/cpu_mask.c

    r47b2d7e3 r1433ecda  
    5757
    5858        for (size_t active_word = 0;
    59                 (active_word + 1) * word_bit_cnt <= cpu_cnt;
    60                 ++active_word) {
     59            (active_word + 1) * word_bit_cnt <= cpu_cnt;
     60            ++active_word) {
    6161                /* Set all bits in the cell/word. */
    6262                cpus->mask[active_word] = -1;
Note: See TracChangeset for help on using the changeset viewer.