From: Motohiro KOSAKI Date: Thu, 19 May 2011 01:04:42 +0000 (+0000) Subject: IB/ipath: Convert old cpumask api into new one X-Git-Tag: v3.1-rc1~314^2^3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57631811728d12ad9b0e96ed3eccb486124a5605;p=pandora-kernel.git IB/ipath: Convert old cpumask api into new one Adapt to new api. We plan to remove old one later. Almost all changes are trivial, but there is one real fix: the following code is unsafe: int ncpus = num_online_cpus() for (i = 0; i < ncpus; i++) { .. } because 1) we don't guarantee last bit of online cpus is equal to num_online_cpus(). some arch assign sparse cpu number. 2) cpu hotplugging may change cpu_online_mask at same time. we need to pin it by get_online_cpus(). Signed-off-by: KOSAKI Motohiro Acked-by: Mike Marciniszyn Signed-off-by: Roland Dreier --- Reading git-diff-tree failed