Ignore:
Timestamp:
Sep 23, 2021, 12:29:35 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
420b498
Parents:
ec421636
Message:

Removed last_cpu (and small spacing changes)

Location:
libcfa/src/concurrency
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/invoke.h

    rec421636 rabcae55  
    170170                bool corctx_flag;
    171171
    172                 int last_cpu;
    173 
    174172                //SKULLDUGGERY errno is not save in the thread data structure because returnToKernel appears to be the only function to require saving and restoring it
    175173
  • libcfa/src/concurrency/kernel.cfa

    rec421636 rabcae55  
    341341                                }
    342342
    343                                         __STATS( if(this->print_halts) __cfaabi_bits_print_safe( STDOUT_FILENO, "PH:%d - %lld 0\n", this->unique_id, rdtscl()); )
     343                                __STATS( if(this->print_halts) __cfaabi_bits_print_safe( STDOUT_FILENO, "PH:%d - %lld 0\n", this->unique_id, rdtscl()); )
    344344                                __cfadbg_print_safe(runtime_core, "Kernel : core %p waiting on eventfd %d\n", this, this->idle);
    345345
     
    423423        __builtin_prefetch( thrd_dst->context.SP );
    424424
    425         int curr = __kernel_getcpu();
    426         if(thrd_dst->last_cpu != curr) {
    427                 int64_t l = thrd_dst->last_cpu;
    428                 int64_t c = curr;
    429                 int64_t v = (l << 32) | c;
    430                 __push_stat( __tls_stats(), v, false, "Processor", this );
    431         }
    432 
    433         thrd_dst->last_cpu = curr;
    434 
    435425        __cfadbg_print_safe(runtime_core, "Kernel : core %p running thread %p (%s)\n", this, thrd_dst, thrd_dst->self_cor.name);
    436426
  • libcfa/src/concurrency/kernel/startup.cfa

    rec421636 rabcae55  
    235235
    236236        register_tls( mainProcessor );
    237         mainThread->last_cpu = __kernel_getcpu();
    238237
    239238        //initialize the global state variables
  • libcfa/src/concurrency/thread.cfa

    rec421636 rabcae55  
    3434        preempted = __NO_PREEMPTION;
    3535        corctx_flag = false;
    36         disable_interrupts();
    37         last_cpu = __kernel_getcpu();
    38         enable_interrupts();
    3936        curr_cor = &self_cor;
    4037        self_mon.owner = &this;
Note: See TracChangeset for help on using the changeset viewer.