x86: use cpumask function for present, possible, and online cpus