]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/e6500: Make TLB lock recursive
authorScott Wood <scottwood@freescale.com>
Fri, 7 Mar 2014 20:48:35 +0000 (14:48 -0600)
committerScott Wood <scottwood@freescale.com>
Thu, 20 Mar 2014 00:57:13 +0000 (19:57 -0500)
commit69c3ac9cd3a28fcd73c2446ac2768299b6dda1e9
tree3d977f76fa266367c7faa95567bc72e199a73db5
parent047d6568c5b413a4833c70c17d9121330175b548
powerpc/e6500: Make TLB lock recursive

Once special level interrupts are supported, we may take nested TLB
misses -- so allow the same thread to acquire the lock recursively.

The lock will not be effective against the nested TLB miss handler
trying to write the same entry as the interrupted TLB miss handler, but
that's also a problem on non-threaded CPUs that lack TLB write
conditional.  This will be addressed in the patch that enables crit/mc
support by invalidating the TLB on return from level exceptions.

Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/include/asm/mmu-book3e.h
arch/powerpc/kernel/setup_64.c
arch/powerpc/mm/tlb_low_64e.S