mirror of git://sourceware.org/git/glibc.git
linux: Add comment on affinity set sizes to tst-skeleton-affinity.c
Change-Id: Ic6ec48f75f3a0576d3121befd04531382c92afb4
This commit is contained in:
parent
e21a786771
commit
9e3e27c4e3
|
|
@ -264,6 +264,11 @@ do_test (void)
|
||||||
|
|
||||||
struct conf conf;
|
struct conf conf;
|
||||||
setup_conf (&conf);
|
setup_conf (&conf);
|
||||||
|
/* Note: The CPU set size in bits can be less than the CPU count
|
||||||
|
(and the maximum test CPU) because the userspace interface rounds
|
||||||
|
up the bit count, and the rounded-up buffer size is passed into
|
||||||
|
the kernel. The kernel does not know that some of the buffer are
|
||||||
|
actually padding, and writes data there. */
|
||||||
printf ("info: Detected CPU set size (in bits): %d\n", conf.set_size);
|
printf ("info: Detected CPU set size (in bits): %d\n", conf.set_size);
|
||||||
printf ("info: Maximum test CPU: %d\n", conf.last_cpu);
|
printf ("info: Maximum test CPU: %d\n", conf.last_cpu);
|
||||||
if (conf.set_size < 0 || conf.last_cpu < 0)
|
if (conf.set_size < 0 || conf.last_cpu < 0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue