sparc64: Probe cpu page size support more portably.
authorDavid S. Miller <davem@davemloft.net>
Fri, 7 Sep 2012 02:01:25 +0000 (19:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Sep 2012 02:01:25 +0000 (19:01 -0700)
commitce33fdc52ad50043eef07d11473bc51e225565bd
treeb2c9e53f3a8f269c7fc5a16e0ebdaf8cea48fdb1
parent4f93d21d2563353df813ee049f6489f340389aab
sparc64: Probe cpu page size support more portably.

On sun4v, interrogate the machine description.  This code is extremely
defensive in nature, and a lot of the checks can probably be removed.

On sun4u things are a lot simpler.  There are the page sizes all chips
support, and then Panther adds 32MB and 256MB pages.

Report the probed value in /proc/cpuinfo

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/mdesc.h
arch/sparc/kernel/mdesc.c
arch/sparc/mm/init_64.c