Ignore:
Timestamp:
Sep 21, 2018, 10:26:33 PM (6 years ago)
Author:
nicolas.van.phan@…
Message:

Remove y_max in kernel init barriers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/cluster_info.c

    r557 r560  
    2424#include <cluster_info.h>
    2525
    26 int cluster_info_is_active( uint16_t cluster_info )
     26int cluster_info_is_active( uint32_t cluster_info )
    2727{
    2828    return (cluster_info & CINFO_ACTIVE);
    2929}
    3030
     31int 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
    3145/*
    32 int cluster_info_cluster_ok( uint16_t cluster_info )
     46int cluster_info_cluster_ok( uint32_t cluster_info )
    3347{
    3448    if ((cluster_info & CINFO_ACTIVE) &&  // If the cluster is not empty
     
    4559}
    4660
    47 int cluster_info_core_ok( uint16_t cluster_info, int n)
     61int cluster_info_core_ok( uint32_t cluster_info, int n)
    4862{
    4963    if ( n < 0 || n >= NB_TOTAL_PROCS )
Note: See TracChangeset for help on using the changeset viewer.