Changeset 437 for trunk/kernel/kern/cluster.c
- Timestamp:
- Mar 28, 2018, 2:40:29 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/cluster.c
r436 r437 4 4 * Author Ghassan Almaless (2008,2009,2010,2011,2012) 5 5 * Mohamed Lamine Karaoui (2015) 6 * Alain Greiner (2016,2017 )6 * Alain Greiner (2016,2017,2018) 7 7 * 8 8 * Copyright (c) UPMC Sorbonne Universites … … 92 92 uint32_t cycle = (uint32_t)hal_get_cycles(); 93 93 if( CONFIG_DEBUG_CLUSTER_INIT < cycle ) 94 printk("\n[DBG] %s enters for cluster %x / cycle %d\n",95 __FUNCTION__ , local_cxy , cycle );94 printk("\n[DBG] %s : thread %x enters for cluster %x / cycle %d\n", 95 __FUNCTION__ , CURRENT_THREAD , local_cxy , cycle ); 96 96 #endif 97 97 … … 113 113 } 114 114 115 #if CONFIG_DEBUG_CLUSTER_INIT115 #if( CONFIG_DEBUG_CLUSTER_INIT & 1 ) 116 116 cycle = (uint32_t)hal_get_cycles(); 117 117 if( CONFIG_DEBUG_CLUSTER_INIT < cycle ) 118 cluster_dmsg("\n[DBG] %s : PPM initialized in cluster %x / cycle %d\n",118 printk("\n[DBG] %s : PPM initialized in cluster %x / cycle %d\n", 119 119 __FUNCTION__ , local_cxy , cycle ); 120 120 #endif … … 123 123 khm_init( &cluster->khm ); 124 124 125 cluster_dmsg("\n[DBG] %s : KHM initialized in cluster %x at cycle %d\n", 126 __FUNCTION__ , local_cxy , hal_get_cycles() ); 125 #if( CONFIG_DEBUG_CLUSTER_INIT & 1 ) 126 uint32_t cycle = (uint32_t)hal_get_cycles(); 127 if( CONFIG_DEBUG_CLUSTER_INIT < cycle ) 128 printk("\n[DBG] %s : KHM initialized in cluster %x at cycle %d\n", 129 __FUNCTION__ , local_cxy , hal_get_cycles() ); 130 #endif 127 131 128 132 // initialises embedded KCM 129 133 kcm_init( &cluster->kcm , KMEM_KCM ); 130 134 131 cluster_dmsg("\n[DBG] %s : KCM initialized in cluster %x at cycle %d\n", 132 __FUNCTION__ , local_cxy , hal_get_cycles() ); 135 #if( CONFIG_DEBUG_CLUSTER_INIT & 1 ) 136 uint32_t cycle = (uint32_t)hal_get_cycles(); 137 if( CONFIG_DEBUG_CLUSTER_INIT < cycle ) 138 printk("\n[DBG] %s : KCM initialized in cluster %x at cycle %d\n", 139 __FUNCTION__ , local_cxy , hal_get_cycles() ); 140 #endif 133 141 134 142 // initialises all cores descriptors … … 140 148 } 141 149 142 #if CONFIG_DEBUG_CLUSTER_INIT150 #if( CONFIG_DEBUG_CLUSTER_INIT & 1 ) 143 151 cycle = (uint32_t)hal_get_cycles(); 144 152 if( CONFIG_DEBUG_CLUSTER_INIT < cycle ) 145 cluster_dmsg("\n[DBG] %s : cores initialized in cluster %x / cycle %d\n",153 printk("\n[DBG] %s : cores initialized in cluster %x / cycle %d\n", 146 154 __FUNCTION__ , local_cxy , cycle ); 147 155 #endif … … 151 159 cluster->rpc_threads = 0; 152 160 153 cluster_dmsg("\n[DBG] %s : RPC fifo inialized in cluster %x at cycle %d\n", 161 #if( CONFIG_DEBUG_CLUSTER_INIT & 1 ) 162 cycle = (uint32_t)hal_get_cycles(); 163 if( CONFIG_DEBUG_CLUSTER_INIT < cycle ) 164 printk("\n[DBG] %s : RPC fifo inialized in cluster %x at cycle %d\n", 154 165 __FUNCTION__ , local_cxy , hal_get_cycles() ); 166 #endif 155 167 156 168 // initialise pref_tbl[] in process manager … … 179 191 cycle = (uint32_t)hal_get_cycles(); 180 192 if( CONFIG_DEBUG_CLUSTER_INIT < cycle ) 181 cluster_dmsg("\n[DBG] %s Process Manager initialized incluster %x / cycle %d\n",182 __FUNCTION__ , local_cxy , cycle );193 printk("\n[DBG] %s , thread %x exit for cluster %x / cycle %d\n", 194 __FUNCTION__ , CURRENT_THREAD , local_cxy , cycle ); 183 195 #endif 184 196
Note: See TracChangeset
for help on using the changeset viewer.