[PATCH 1/2] cpumask: Properly calculate cpumask values

2015-02-25 Thread green
From: Oleg Drokin With CONFIG_CPUMASK_OFFSTACK enabled there seems to be some disparity between theoretical maximum of CPUs in the system (NR_CPUS that is huge) and the actual value that is calculated at runtime (nr_cpu_ids). Functions like cpus_weight should only check up to nr_cpu_ids bits in

[PATCH 1/2] cpumask: Properly calculate cpumask values

2015-02-25 Thread green
From: Oleg Drokin gr...@linuxhacker.ru With CONFIG_CPUMASK_OFFSTACK enabled there seems to be some disparity between theoretical maximum of CPUs in the system (NR_CPUS that is huge) and the actual value that is calculated at runtime (nr_cpu_ids). Functions like cpus_weight should only check up