perf sched: Determine the number of CPUs automatically