fix cpu/core/thread affinity