Ignore:
File:
1 edited

Legend:

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

    r1757f98 r7cf3b1d  
    5555};
    5656
     57
     58struct __fd_waitctx {
     59        volatile int fd;
     60};
     61
    5762// Wrapper around kernel threads
    5863struct __attribute__((aligned(128))) processor {
     
    6772                unsigned target;
    6873                unsigned last;
    69                 unsigned cnt;
    70                 unsigned long long int cutoff;
     74                signed   cpu;
    7175        } rdq;
    7276
     
    102106        int idle_fd;
    103107
     108        // Idle waitctx
     109        struct __fd_waitctx idle_wctx;
     110
    104111        // Termination synchronisation (user semaphore)
    105112        oneshot terminated;
     
    152159        volatile unsigned long long tv;
    153160        volatile unsigned long long ma;
     161};
     162
     163struct __attribute__((aligned(16))) __cache_id_t {
     164        volatile unsigned id;
    154165};
    155166
     
    164175static inline void ^?{}(__timestamp_t & this) {}
    165176
     177struct __attribute__((aligned(128))) __ready_queue_caches_t;
     178void  ?{}(__ready_queue_caches_t & this);
     179void ^?{}(__ready_queue_caches_t & this);
     180
    166181//TODO adjust cache size to ARCHITECTURE
    167 // Structure holding the relaxed ready queue
     182// Structure holding the ready queue
    168183struct __ready_queue_t {
    169184        // Data tracking the actual lanes
     
    178193                __timestamp_t * volatile tscs;
    179194
     195                __cache_id_t * volatile caches;
     196
    180197                // Array of stats
    181198                __help_cnts_t * volatile help;
     
    198215
    199216        // FD to use to wake a processor
    200         volatile int fd;
     217        struct __fd_waitctx * volatile fdw;
    201218
    202219        // Total number of processors
Note: See TracChangeset for help on using the changeset viewer.