diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2011-02-24 05:47:32 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-03-01 22:56:48 -0500 |
commit | f342552b917a18a7a1fa2c10625df85fac828c36 (patch) | |
tree | 236fc598d5c4342bd69c0098547ad6df51557990 /arch/powerpc/kernel/process.c | |
parent | dd9c1549edef02290edced639f67b54a25abbe0e (diff) |
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 <a.p.zijlstra@chello.nl>
Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/process.c')
0 files changed, 0 insertions, 0 deletions