Changeset 49eb681 in mainline for kernel/generic/src


Ignore:
Timestamp:
2010-06-28T23:58:20Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9a21f9d
Parents:
e3038b4
Message:

code cleanup (no change in functionality)

Location:
kernel/generic/src
Files:
2 edited

Legend:

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

    re3038b4 r49eb681  
    107107        if (config.cpu_count > 1) {
    108108                waitq_initialize(&ap_completion_wq);
     109               
    109110                /*
    110111                 * Create the kmp thread and wait for its completion.
     
    124125                thread_join(thread);
    125126                thread_detach(thread);
    126         }
    127        
    128         if (config.cpu_count > 1) {
     127               
     128                /*
     129                 * For each CPU, create its load balancing thread.
     130                 */
    129131                size_t i;
    130132               
    131                 /*
    132                  * For each CPU, create its load balancing thread.
    133                  */
    134133                for (i = 0; i < config.cpu_count; i++) {
    135134                        thread = thread_create(kcpulb, NULL, TASK, THREAD_FLAG_WIRED, "kcpulb", true);
  • kernel/generic/src/mm/tlb.c

    re3038b4 r49eb681  
    9494               
    9595                cpu_t *cpu = &cpus[i];
     96               
    9697                irq_spinlock_lock(&cpu->lock, false);
    9798                if (cpu->tlb_messages_count == TLB_MESSAGE_QUEUE_LEN) {
     
    121122       
    122123busy_wait:
    123         for (i = 0; i < config.cpu_count; i++)
     124        for (i = 0; i < config.cpu_count; i++) {
    124125                if (cpus[i].tlb_active)
    125126                        goto busy_wait;
     127        }
    126128       
    127129        return ipl;
Note: See TracChangeset for help on using the changeset viewer.