From 364609e8e043f6e30ef8dab169b6d2525e61f434 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Mon, 10 Oct 2011 21:54:56 +0200 Subject: [PATCH] add the array RC_RCCEID to determine the RCCE ID from a given core id --- arch/x86/include/asm/RCCE_lib.h | 1 + arch/x86/scc/RCCE_admin.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/x86/include/asm/RCCE_lib.h b/arch/x86/include/asm/RCCE_lib.h index 3ca89d1f..1a5b68ca 100644 --- a/arch/x86/include/asm/RCCE_lib.h +++ b/arch/x86/include/asm/RCCE_lib.h @@ -102,6 +102,7 @@ extern int RCCE_BUFF_SIZE; #endif extern int RC_MY_COREID; extern int RC_COREID[RCCE_MAXNP]; +extern int RC_RCCEID[RCCE_MAXNP]; extern int RC_REFCLOCKMHZ; extern int RCCE_IAM; extern int RCCE_debug_synch; diff --git a/arch/x86/scc/RCCE_admin.c b/arch/x86/scc/RCCE_admin.c index 446e1f78..78b26b21 100644 --- a/arch/x86/scc/RCCE_admin.c +++ b/arch/x86/scc/RCCE_admin.c @@ -56,6 +56,7 @@ int RC_REFCLOCKMHZ; // baseline CPU frequency (MHz) int RC_MY_COREID; // physical ID of calling core int RC_COREID[RCCE_MAXNP]; // array of physical core IDs for all participating // cores, sorted by rank +int RC_RCCEID[RCCE_MAXNP] = {[0 ... RCCE_MAXNP-1] = -1}; // array of RCCE IDs for all cores int RCCE_IAM=-1; // rank of calling core (invalid by default) RCCE_COMM RCCE_COMM_WORLD; // predefined global communicator int RCCE_BUFF_SIZE; // available MPB size @@ -273,6 +274,7 @@ int RCCE_init( // determine rank of calling core for (ue=0; ue