Changeset 560 for trunk/kernel/kern/cluster_info.c
- Timestamp:
- Sep 21, 2018, 10:26:33 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/cluster_info.c
r557 r560 24 24 #include <cluster_info.h> 25 25 26 int cluster_info_is_active( uint 16_t cluster_info )26 int cluster_info_is_active( uint32_t cluster_info ) 27 27 { 28 28 return (cluster_info & CINFO_ACTIVE); 29 29 } 30 30 31 int cluster_info_nb_actives( uint32_t cluster_info[CONFIG_MAX_CLUSTERS_X][CONFIG_MAX_CLUSTERS_Y] ) 32 { 33 int n = 0; 34 int x, y; 35 for (y = 0; y < CONFIG_MAX_CLUSTERS_Y; y++) { 36 for (x = 0; x < CONFIG_MAX_CLUSTERS_X; x++) { 37 if (cluster_info[x][y] & CINFO_ACTIVE) { 38 n += 1; 39 } 40 } 41 } 42 return n; 43 } 44 31 45 /* 32 int cluster_info_cluster_ok( uint 16_t cluster_info )46 int cluster_info_cluster_ok( uint32_t cluster_info ) 33 47 { 34 48 if ((cluster_info & CINFO_ACTIVE) && // If the cluster is not empty … … 45 59 } 46 60 47 int cluster_info_core_ok( uint 16_t cluster_info, int n)61 int cluster_info_core_ok( uint32_t cluster_info, int n) 48 62 { 49 63 if ( n < 0 || n >= NB_TOTAL_PROCS )
Note: See TracChangeset
for help on using the changeset viewer.