Changeset 438 for trunk/kernel/kern/cluster.c
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/cluster.c
r437 r438 89 89 spinlock_init( &cluster->kcm_lock ); 90 90 91 #if CONFIG_DEBUG_CLUSTER_INIT91 #if DEBUG_CLUSTER_INIT 92 92 uint32_t cycle = (uint32_t)hal_get_cycles(); 93 if( CONFIG_DEBUG_CLUSTER_INIT < cycle )93 if( DEBUG_CLUSTER_INIT < cycle ) 94 94 printk("\n[DBG] %s : thread %x enters for cluster %x / cycle %d\n", 95 95 __FUNCTION__ , CURRENT_THREAD , local_cxy , cycle ); … … 99 99 cluster->dqdt_root_level = dqdt_init( info->x_size, 100 100 info->y_size, 101 info->y_width ); 102 cluster->threads_var = 0; 103 cluster->pages_var = 0; 101 info->y_width ) - 1; 104 102 105 103 // initialises embedded PPM … … 113 111 } 114 112 115 #if( CONFIG_DEBUG_CLUSTER_INIT & 1 )113 #if( DEBUG_CLUSTER_INIT & 1 ) 116 114 cycle = (uint32_t)hal_get_cycles(); 117 if( CONFIG_DEBUG_CLUSTER_INIT < cycle )115 if( DEBUG_CLUSTER_INIT < cycle ) 118 116 printk("\n[DBG] %s : PPM initialized in cluster %x / cycle %d\n", 119 117 __FUNCTION__ , local_cxy , cycle ); … … 123 121 khm_init( &cluster->khm ); 124 122 125 #if( CONFIG_DEBUG_CLUSTER_INIT & 1 )123 #if( DEBUG_CLUSTER_INIT & 1 ) 126 124 uint32_t cycle = (uint32_t)hal_get_cycles(); 127 if( CONFIG_DEBUG_CLUSTER_INIT < cycle )125 if( DEBUG_CLUSTER_INIT < cycle ) 128 126 printk("\n[DBG] %s : KHM initialized in cluster %x at cycle %d\n", 129 127 __FUNCTION__ , local_cxy , hal_get_cycles() ); … … 133 131 kcm_init( &cluster->kcm , KMEM_KCM ); 134 132 135 #if( CONFIG_DEBUG_CLUSTER_INIT & 1 )133 #if( DEBUG_CLUSTER_INIT & 1 ) 136 134 uint32_t cycle = (uint32_t)hal_get_cycles(); 137 if( CONFIG_DEBUG_CLUSTER_INIT < cycle )135 if( DEBUG_CLUSTER_INIT < cycle ) 138 136 printk("\n[DBG] %s : KCM initialized in cluster %x at cycle %d\n", 139 137 __FUNCTION__ , local_cxy , hal_get_cycles() ); … … 148 146 } 149 147 150 #if( CONFIG_DEBUG_CLUSTER_INIT & 1 )148 #if( DEBUG_CLUSTER_INIT & 1 ) 151 149 cycle = (uint32_t)hal_get_cycles(); 152 if( CONFIG_DEBUG_CLUSTER_INIT < cycle )150 if( DEBUG_CLUSTER_INIT < cycle ) 153 151 printk("\n[DBG] %s : cores initialized in cluster %x / cycle %d\n", 154 152 __FUNCTION__ , local_cxy , cycle ); … … 159 157 cluster->rpc_threads = 0; 160 158 161 #if( CONFIG_DEBUG_CLUSTER_INIT & 1 )159 #if( DEBUG_CLUSTER_INIT & 1 ) 162 160 cycle = (uint32_t)hal_get_cycles(); 163 if( CONFIG_DEBUG_CLUSTER_INIT < cycle )161 if( DEBUG_CLUSTER_INIT < cycle ) 164 162 printk("\n[DBG] %s : RPC fifo inialized in cluster %x at cycle %d\n", 165 163 __FUNCTION__ , local_cxy , hal_get_cycles() ); … … 188 186 } 189 187 190 #if CONFIG_DEBUG_CLUSTER_INIT188 #if DEBUG_CLUSTER_INIT 191 189 cycle = (uint32_t)hal_get_cycles(); 192 if( CONFIG_DEBUG_CLUSTER_INIT < cycle )190 if( DEBUG_CLUSTER_INIT < cycle ) 193 191 printk("\n[DBG] %s , thread %x exit for cluster %x / cycle %d\n", 194 192 __FUNCTION__ , CURRENT_THREAD , local_cxy , cycle ); … … 456 454 pmgr_t * pm = &LOCAL_CLUSTER->pmgr; 457 455 458 #if CONFIG_DEBUG_CLUSTER_PROCESS_COPIES456 #if DEBUG_CLUSTER_PROCESS_COPIES 459 457 uint32_t cycle = (uint32_t)hal_get_cycles(); 460 if( CONFIG_DEBUG_CLUSTER_PROCESS_COPIES < cycle )458 if( DEBUG_CLUSTER_PROCESS_COPIES < cycle ) 461 459 printk("\n[DBG] %s enters / cluster %x / process %x / cycle %d\n", 462 460 __FUNCTION__ , local_cxy , process , cycle ); … … 487 485 remote_spinlock_unlock_busy( copies_lock , irq_state ); 488 486 489 #if CONFIG_DEBUG_CLUSTER_PROCESS_COPIES487 #if DEBUG_CLUSTER_PROCESS_COPIES 490 488 cycle = (uint32_t)hal_get_cycles(); 491 if( CONFIG_DEBUG_CLUSTER_PROCESS_COPIES < cycle )489 if( DEBUG_CLUSTER_PROCESS_COPIES < cycle ) 492 490 printk("\n[DBG] %s exit / cluster %x / process %x / cycle %d\n", 493 491 __FUNCTION__ , local_cxy , process , cycle ); … … 502 500 pmgr_t * pm = &LOCAL_CLUSTER->pmgr; 503 501 504 #if CONFIG_DEBUG_CLUSTER_PROCESS_COPIES502 #if DEBUG_CLUSTER_PROCESS_COPIES 505 503 uint32_t cycle = (uint32_t)hal_get_cycles(); 506 if( CONFIG_DEBUG_CLUSTER_PROCESS_COPIES < cycle )504 if( DEBUG_CLUSTER_PROCESS_COPIES < cycle ) 507 505 printk("\n[DBG] %s enters / cluster %x / process %x / cycle %d\n", 508 506 __FUNCTION__ , local_cxy , process , cycle ); … … 530 528 remote_spinlock_unlock_busy( copies_lock , irq_state ); 531 529 532 #if CONFIG_DEBUG_CLUSTER_PROCESS_COPIES530 #if DEBUG_CLUSTER_PROCESS_COPIES 533 531 cycle = (uint32_t)hal_get_cycles(); 534 if( CONFIG_DEBUG_CLUSTER_PROCESS_COPIES < cycle )532 if( DEBUG_CLUSTER_PROCESS_COPIES < cycle ) 535 533 printk("\n[DBG] %s exit / cluster %x / process %x / cycle %d\n", 536 534 __FUNCTION__ , local_cxy , process , cycle );
Note: See TracChangeset
for help on using the changeset viewer.