- File:
-
- 1 edited
-
libcfa/src/concurrency/kernel.hfa (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.hfa
r1757f98 r7cf3b1d 55 55 }; 56 56 57 58 struct __fd_waitctx { 59 volatile int fd; 60 }; 61 57 62 // Wrapper around kernel threads 58 63 struct __attribute__((aligned(128))) processor { … … 67 72 unsigned target; 68 73 unsigned last; 69 unsigned cnt; 70 unsigned long long int cutoff; 74 signed cpu; 71 75 } rdq; 72 76 … … 102 106 int idle_fd; 103 107 108 // Idle waitctx 109 struct __fd_waitctx idle_wctx; 110 104 111 // Termination synchronisation (user semaphore) 105 112 oneshot terminated; … … 152 159 volatile unsigned long long tv; 153 160 volatile unsigned long long ma; 161 }; 162 163 struct __attribute__((aligned(16))) __cache_id_t { 164 volatile unsigned id; 154 165 }; 155 166 … … 164 175 static inline void ^?{}(__timestamp_t & this) {} 165 176 177 struct __attribute__((aligned(128))) __ready_queue_caches_t; 178 void ?{}(__ready_queue_caches_t & this); 179 void ^?{}(__ready_queue_caches_t & this); 180 166 181 //TODO adjust cache size to ARCHITECTURE 167 // Structure holding the re laxed ready queue182 // Structure holding the ready queue 168 183 struct __ready_queue_t { 169 184 // Data tracking the actual lanes … … 178 193 __timestamp_t * volatile tscs; 179 194 195 __cache_id_t * volatile caches; 196 180 197 // Array of stats 181 198 __help_cnts_t * volatile help; … … 198 215 199 216 // FD to use to wake a processor 200 volatile int fd;217 struct __fd_waitctx * volatile fdw; 201 218 202 219 // Total number of processors
Note:
See TracChangeset
for help on using the changeset viewer.