powerpc/mm: Fix switch_mmu_context to iterate of the proper list of cpus
authorKumar Gala <galak@kernel.crashing.org>
Wed, 5 Aug 2009 03:33:32 +0000 (22:33 -0500)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 20 Aug 2009 00:25:12 +0000 (10:25 +1000)
commit67050b5c3e9992d98554bd224d5a7898cc4881ff
tree296c4d21e193c22e3e31f01799c0048f45df41c7
parentaf984b816530b4725b92e01ecfba7c5e3eab910d
powerpc/mm: Fix switch_mmu_context to iterate of the proper list of cpus

Introduced a temporary variable into our iterating over the list cpus
that are threads on the same core.  For some reason Ben forgot how for
loops work.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/mmu_context_nohash.c