Changeset 391 for soft/giet_vm/giet_kernel/ctx_handler.c
- Timestamp:
- Aug 11, 2014, 9:19:06 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_kernel/ctx_handler.c
r330 r391 103 103 void _idle_task() 104 104 { 105 unsigned int gpid = _get_procid(); 106 unsigned int cluster_xy = gpid / NB_PROCS_MAX; 107 unsigned int lpid = gpid % NB_PROCS_MAX; 108 unsigned int x = cluster_xy >> Y_WIDTH; 109 unsigned int y = cluster_xy & ((1<<Y_WIDTH)-1); 110 105 111 while(1) 106 112 { 113 // initialize counter 107 114 unsigned int count = GIET_IDLE_TASK_PERIOD; 108 115 … … 119 126 120 127 // warning message 121 unsigned int gpid = _get_procid();122 unsigned int cluster_xy = gpid / NB_PROCS_MAX;123 unsigned int lpid = gpid % NB_PROCS_MAX;124 unsigned int x = cluster_xy >> Y_WIDTH;125 unsigned int y = cluster_xy & ((1<<Y_WIDTH)-1);126 127 128 _printf("\n[GIET WARNING] Processor[%d,%d,%d] still idle at cycle %d\n", 128 129 x, y, lpid, _get_proctime() ); 129 130 130 } 131 131 } // end ctx_idle()
Note: See TracChangeset
for help on using the changeset viewer.