Add a comment explaining the discrepancy in size between kernel and

userland of cpuset_t.

Discussed with:	jhb
This commit is contained in:
Attilio Rao 2011-05-03 18:48:06 +00:00
parent 6106275bd4
commit 3d9f29d0f7

View File

@ -36,6 +36,10 @@
#define CPU_SETSIZE MAXCPU
#endif
/*
* In userland a bigger cpuset structure is preferable in order to cope
* with kernel bumping of MAXCPU and still have a compatible layout.
*/
#define CPU_MAXSIZE (4 * MAXCPU)
#ifndef CPU_SETSIZE