From: Peter Zijlstra Date: Thu, 24 Feb 2011 10:47:32 +0000 (+0000) Subject: powerpc/mm: Make hpte_need_flush() safe for preemption X-Git-Tag: v2.6.38-rc8~40^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f342552b917a18a7a1fa2c10625df85fac828c36;p=pandora-kernel.git powerpc/mm: Make hpte_need_flush() safe for preemption hpte_need_flush() might be called outside of a preempt section when manipulating the kernel page tables, so we need to use the appopriate variants of per-cpu variable accesses. There should be no risk of being in the middle of a batch and a context switch will flush any pending batch. [Patch extracted from a larger patch in Peter's preemptible mmu_gather series] Signed-off-by: Peter Zijlstra Signed-off-by: Hugh Dickins Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed