08-17-2016 09:14 AM
08-17-2016 02:41 PM
int mask = ...;
syscall( __NR_sched_setaffinity, gettid(), sizeof( mask ), &mask );
08-17-2016 02:44 PM
08-18-2016 09:56 AM
08-18-2016 03:13 PM
const int mask = 0xFFFE;
...should work for excluding CPU0 for the time being. And on current devices that shouldn't cause any issues but hard to make guarantees for future/unknown hardware.