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>
Wed, 27 Feb 2013 17:21:12 +0000 (09:21 -0800)
commitf39d6de4af78fb70abbf7f43a2ecbff2a1e8d795
tree615ef4c8985058609acf2df3b7adfa0eb5a68a3f
parentab3f3a4fbfaec974f34b636d9bf978f4d3cc0b28
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