[POWERPC] Make high hugepage areas preempt safe
authorHugh Dickins <hugh@veritas.com>
Tue, 31 Oct 2006 18:40:39 +0000 (18:40 +0000)
committerPaul Mackerras <paulus@samba.org>
Wed, 1 Nov 2006 03:52:48 +0000 (14:52 +1100)
commit96268889ee369b36203b7a06e8aabb197270216e
tree90e6553e23ebd4c23b3e39a90d9cb70bc691e7aa
parent5fe8e8b88e68e517637e3f8287f1fee89e2d9252
[POWERPC] Make high hugepage areas preempt safe

Checking source for other get_paca()->field preemption dangers found that
open_high_hpage_areas does a structure copy into its paca while preemption
is enabled: unsafe however gcc accomplishes it.  Just remove that copy:
it's done safely afterwards by on_each_cpu, as in open_low_hpage_areas.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Acked-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/hugetlbpage.c