Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel.hfa

    r7cf3b1d r1757f98  
    5555};
    5656
    57 
    58 struct __fd_waitctx {
    59         volatile int fd;
    60 };
    61 
    6257// Wrapper around kernel threads
    6358struct __attribute__((aligned(128))) processor {
     
    7267                unsigned target;
    7368                unsigned last;
    74                 signed   cpu;
     69                unsigned cnt;
     70                unsigned long long int cutoff;
    7571        } rdq;
    7672
     
    106102        int idle_fd;
    107103
    108         // Idle waitctx
    109         struct __fd_waitctx idle_wctx;
    110 
    111104        // Termination synchronisation (user semaphore)
    112105        oneshot terminated;
     
    159152        volatile unsigned long long tv;
    160153        volatile unsigned long long ma;
    161 };
    162 
    163 struct __attribute__((aligned(16))) __cache_id_t {
    164         volatile unsigned id;
    165154};
    166155
     
    175164static inline void ^?{}(__timestamp_t & this) {}
    176165
    177 struct __attribute__((aligned(128))) __ready_queue_caches_t;
    178 void  ?{}(__ready_queue_caches_t & this);
    179 void ^?{}(__ready_queue_caches_t & this);
    180 
    181166//TODO adjust cache size to ARCHITECTURE
    182 // Structure holding the ready queue
     167// Structure holding the relaxed ready queue
    183168struct __ready_queue_t {
    184169        // Data tracking the actual lanes
     
    193178                __timestamp_t * volatile tscs;
    194179
    195                 __cache_id_t * volatile caches;
    196 
    197180                // Array of stats
    198181                __help_cnts_t * volatile help;
     
    215198
    216199        // FD to use to wake a processor
    217         struct __fd_waitctx * volatile fdw;
     200        volatile int fd;
    218201
    219202        // Total number of processors
Note: See TracChangeset for help on using the changeset viewer.