On Thu, 7 Jun 2018, Li RongQing wrote: > This should be permit to preallocate memory for all NR_CPUS
No. The comment is correct. The whole magic is there to size num_possible_cpus correctly so that we can avoid allocating for NR_CPUS which is most of the time larger than num_possible_cpus. Thanks, tglx