Move the cpumask_t type and the cpu_online_mask declaration from
<linux/cpu.h> to the new header, which <linux/cpu.h> now includes, and
add:
- struct cpumask, which wraps a cpuset_t so that a pointer to a cpumask_t can be used as a pointer to a struct cpumask;
- nr_cpu_ids, the number of possible CPU IDs;
- cpu_none_mask, an empty CPU mask;
- cpumask_first(), which returns the first CPU of a mask, or nr_cpu_ids when the mask is empty;
- cpumask_weight(), which returns the number of CPUs in a mask.
Sponsored by: The FreeBSD Foundation