Tightened generation size - don't count process numbers more than once
This commit is contained in:
parent
18df4cb859
commit
0cd9341f21
1 changed files with 1 additions and 2 deletions
|
@ -15,8 +15,7 @@
|
||||||
* the generation size is big enough to start the next generation
|
* the generation size is big enough to start the next generation
|
||||||
* above the highest magic number.
|
* above the highest magic number.
|
||||||
*/
|
*/
|
||||||
#define _ENDPOINT_MAX_PROC (_NR_PROCS)
|
#define _ENDPOINT_GENERATION_SIZE (NR_TASKS+_MAX_MAGIC_PROC+1)
|
||||||
#define _ENDPOINT_GENERATION_SIZE (NR_TASKS+_ENDPOINT_MAX_PROC+_MAX_MAGIC_PROC+1)
|
|
||||||
#define _ENDPOINT_MAX_GENERATION (INT_MAX/_ENDPOINT_GENERATION_SIZE-1)
|
#define _ENDPOINT_MAX_GENERATION (INT_MAX/_ENDPOINT_GENERATION_SIZE-1)
|
||||||
|
|
||||||
/* Generation + Process slot number <-> endpoint. */
|
/* Generation + Process slot number <-> endpoint. */
|
||||||
|
|
Loading…
Reference in a new issue