mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 04:01:26 +00:00
The cpus_*() functions were deprecated via patch "cpumask: introduce new API, without changing anything" (November 2008, commit ID 2d3854a37e8b). Hence switch from the cpus_*() API to the cpumask_*() API. This patch has the intended side effect of not adding the "[key]" property to cpumask sysfs attributes that contain the default cpumask. The current code namely reads uninitialized bits on systems where nr_cpu_ids < NR_CPUS because cpus_equal() compares more bits than those that were set by cpumask_copy(). Signed-off-by: Bart Van Assche <bvanassche@acm.org> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5596 d57e44dd-8a1f-0410-8b47-8ef2f437770f