Add cpu-affinity support.