Ignore:
Timestamp:
Apr 5, 2021, 3:18:12 PM (8 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
b0904bf
Parents:
c9ec301
Message:

Fix stats so they are correctly tallied when called from outside the cluster.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/ready_queue.cfa

    rc9ec301 r5cb51502  
    245245        __cfadbg_print_safe(ready_queue, "Kernel : Pushing %p on cluster %p\n", thrd, cltr);
    246246
    247         #if !defined(__CFA_NO_STATISTICS__)
    248                 const bool external = (!kernelTLS().this_proc_id->full_proc) || (cltr != kernelTLS().this_processor->cltr);
    249         #endif
     247        const bool external = (!kernelTLS().this_processor) || (cltr != kernelTLS().this_processor->cltr);
    250248
    251249        // write timestamp
     
    258256                preferred =
    259257                        //*
    260                         kernelTLS().this_processor ? kernelTLS().this_processor->cltr_id : -1;
     258                        external ? -1 : kernelTLS().this_processor->cltr_id;
    261259                        /*/
    262260                        thrd->link.preferred * 4;
Note: See TracChangeset for help on using the changeset viewer.