convert old cpumask API into new one