]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sparc64: Handle hugepage TSB being NULL.
authorDavid S. Miller <davem@davemloft.net>
Tue, 19 Feb 2013 21:20:08 +0000 (13:20 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 13:38:34 +0000 (05:38 -0800)
commit77913178ddf081e3d9afe2f866fb36cc33904c92
treee31b8d9efedb0f9a73c7771155dbfb944b33b30a
parent9e84c1288f809abcb9d7bfaff0dc882627a1a56d
sparc64: Handle hugepage TSB being NULL.

[ Upstream commit bcd896bae0166b4443503482a26ecf84d9ba60ab ]

Accomodate the possibility that the TSB might be NULL at
the point that update_mmu_cache() is invoked.  This is
necessary because we will sometimes need to defer the TSB
allocation to the first fault that happens in the 'mm'.

Seperate out the hugepage PTE test into a seperate function
so that the logic is clearer.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/mm/init_64.c