get cpu affinity function