summaryrefslogtreecommitdiffstats
path: root/Documentation/x86
diff options
context:
space:
mode:
authorMotohiro KOSAKI <kosaki.motohiro@jp.fujitsu.com>2011-05-19 01:04:42 +0000
committerRoland Dreier <roland@purestorage.com>2011-07-18 11:56:18 -0700
commit57631811728d12ad9b0e96ed3eccb486124a5605 (patch)
treee5ecab401a54d5f1882469fcac26cc85caded44c /Documentation/x86
parent620917de59eeb934b9f8cf35cc2d95c1ac8ed0fc (diff)
downloadop-kernel-dev-57631811728d12ad9b0e96ed3eccb486124a5605.zip
op-kernel-dev-57631811728d12ad9b0e96ed3eccb486124a5605.tar.gz
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 <kosaki.motohiro@jp.fujitsu.com> Acked-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'Documentation/x86')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud