Changeset 2f57690 in mainline for kernel/generic/src/main/kinit.c


Ignore:
Timestamp:
2009-03-03T12:41:39Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
deca67b
Parents:
561db3f
Message:

cstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/main/kinit.c

    r561db3f r2f57690  
    3333/**
    3434 * @file
    35  * @brief       Kernel initialization thread.
     35 * @brief Kernel initialization thread.
    3636 *
    3737 * This file contains kinit kernel thread which carries out
     
    8181#endif
    8282
    83 #define BOOT_PREFIX             "boot:"
    84 #define BOOT_PREFIX_LEN         5
     83#define BOOT_PREFIX      "boot:"
     84#define BOOT_PREFIX_LEN  5
    8585
    8686/** Kernel initialization thread.
     
    9898        thread_t *thread;
    9999#endif
    100 
     100       
    101101        /*
    102102         * Detach kinit as nobody will call thread_join_timeout() on it.
    103103         */
    104104        thread_detach(THREAD);
    105 
     105       
    106106        interrupts_disable();
    107 
    108 #ifdef CONFIG_SMP                       
     107       
     108#ifdef CONFIG_SMP
    109109        if (config.cpu_count > 1) {
    110110                waitq_initialize(&ap_completion_wq);
     
    126126                thread_detach(thread);
    127127        }
    128 #endif /* CONFIG_SMP */
    129        
    130 #ifdef CONFIG_SMP
     128       
    131129        if (config.cpu_count > 1) {
    132130                count_t i;
     
    144142                        } else
    145143                                printf("Unable to create kcpulb thread for cpu" PRIc "\n", i);
    146 
    147144                }
    148145        }
     
    153150         */
    154151        arch_post_smp_init();
    155 
     152       
    156153#ifdef CONFIG_KCONSOLE
    157154        if (stdin) {
     
    180177                        continue;
    181178                }
    182 
     179               
    183180                /*
    184181                 * Construct task name from the 'boot:' prefix and the
    185182                 * name stored in the init structure (if any).
    186183                 */
    187 
    188                 char namebuf[TASK_NAME_BUFLEN], *name;
    189 
     184               
     185                char namebuf[TASK_NAME_BUFLEN];
     186                char *name;
     187               
    190188                name = init.tasks[i].name;
    191                 if (name[0] == '\0') name = "<unknown>";
    192 
     189                if (name[0] == '\0')
     190                        name = "<unknown>";
     191               
    193192                ASSERT(TASK_NAME_BUFLEN >= BOOT_PREFIX_LEN);
    194193                strncpy(namebuf, BOOT_PREFIX, TASK_NAME_BUFLEN);
     
    234233                }
    235234        }
    236 
     235       
    237236#ifdef CONFIG_KCONSOLE
    238237        if (!stdin) {
Note: See TracChangeset for help on using the changeset viewer.