Tightened generation size - don't count process numbers more than once

This commit is contained in:
Ben Gras 2006-03-07 15:44:34 +00:00
parent 18df4cb859
commit 0cd9341f21

View file

@ -15,8 +15,7 @@
* the generation size is big enough to start the next generation
* above the highest magic number.
*/
#define _ENDPOINT_MAX_PROC (_NR_PROCS)
#define _ENDPOINT_GENERATION_SIZE (NR_TASKS+_ENDPOINT_MAX_PROC+_MAX_MAGIC_PROC+1)
#define _ENDPOINT_GENERATION_SIZE (NR_TASKS+_MAX_MAGIC_PROC+1)
#define _ENDPOINT_MAX_GENERATION (INT_MAX/_ENDPOINT_GENERATION_SIZE-1)
/* Generation + Process slot number <-> endpoint. */