Hi! > sched_getaffinity() and sched_setaffinity() cares about number of possible > CPUs the OS or hardware can support, which can be larger than what > sysconf(_SC_NPROCESSORS_CONF) currently provides (by enumarating > /sys/devices/system/cpu/cpu* entries). > > Use /sys/devices/system/cpu/kernel_max, if available. This represents > NR_CPUS-1, a compile time option which specifies "maximum number of CPUs > which this kernel will support". This should give us cpu mask size > large enough for any purposes. > > If the kernel_max sysfs file is not available, fall back to > _SC_NPROCESSORS_CONF.
Looks good to me, acked. Is this last failure that needed to be fixed before the release or are there any more? -- Cyril Hrubis chru...@suse.cz ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list