Changeset 562 for trunk/kernel/kern/dqdt.c
- Timestamp:
- Sep 21, 2018, 10:27:06 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/dqdt.c
r492 r562 69 69 void dqdt_display( void ) 70 70 { 71 /* 71 72 reg_t save_sr; 72 73 … … 95 96 // release lock 96 97 remote_spinlock_unlock_busy( lock_xp , save_sr ); 98 */ 97 99 } 98 100 … … 120 122 uint32_t level_max = (bits_log2(size_ext * size_ext) >> 1) + 1; 121 123 124 return level_max; 125 126 /* 122 127 // get cluster coordinates 123 128 uint32_t x = local_cxy >> y_width; … … 189 194 190 195 return level_max; 196 */ 191 197 192 198 } // end dqdt_init() … … 243 249 void dqdt_update_threads( int32_t increment ) 244 250 { 251 return; 252 /* 245 253 cluster_t * cluster = LOCAL_CLUSTER; 246 254 dqdt_node_t * node = &cluster->dqdt_tbl[0]; … … 251 259 // propagate to DQDT upper levels 252 260 if( node->parent != XPTR_NULL ) dqdt_propagate_threads( node->parent , increment ); 261 */ 253 262 } 254 263 … … 256 265 void dqdt_update_pages( int32_t increment ) 257 266 { 267 return; 268 /* 258 269 cluster_t * cluster = LOCAL_CLUSTER; 259 270 dqdt_node_t * node = &cluster->dqdt_tbl[0]; … … 264 275 // propagate to DQDT upper levels 265 276 if( node->parent != XPTR_NULL ) dqdt_propagate_pages( node->parent , increment ); 277 */ 266 278 } 267 279 … … 318 330 cxy_t dqdt_get_cluster_for_process( void ) 319 331 { 332 return cluster_random_select(); 333 /* 320 334 // build extended pointer on DQDT root node 321 335 cluster_t * cluster = LOCAL_CLUSTER; … … 325 339 // call recursive function 326 340 return dqdt_select_cluster( root_xp , false ); 341 */ 327 342 } 328 343 … … 330 345 cxy_t dqdt_get_cluster_for_memory( void ) 331 346 { 347 return cluster_random_select(); 348 /* 332 349 // build extended pointer on DQDT root node 333 350 cluster_t * cluster = LOCAL_CLUSTER; … … 337 354 // call recursive function 338 355 return dqdt_select_cluster( root_xp , true ); 339 } 340 356 */ 357 } 358
Note: See TracChangeset
for help on using the changeset viewer.