diff options
author | David S. Miller <davem@davemloft.net> | 2012-09-07 04:01:25 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-07 04:01:25 +0200 |
commit | ce33fdc52ad50043eef07d11473bc51e225565bd (patch) | |
tree | b2c9e53f3a8f269c7fc5a16e0ebdaf8cea48fdb1 /arch/sparc/include | |
parent | sparc64: Support 2GB and 16GB page sizes for kernel linear mappings. (diff) | |
download | linux-ce33fdc52ad50043eef07d11473bc51e225565bd.tar.xz linux-ce33fdc52ad50043eef07d11473bc51e225565bd.zip |
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>
Diffstat (limited to 'arch/sparc/include')
-rw-r--r-- | arch/sparc/include/asm/mdesc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/mdesc.h b/arch/sparc/include/asm/mdesc.h index 9faa046713fb..139097f3a67b 100644 --- a/arch/sparc/include/asm/mdesc.h +++ b/arch/sparc/include/asm/mdesc.h @@ -73,6 +73,7 @@ extern void mdesc_register_notifier(struct mdesc_notifier_client *client); extern void mdesc_fill_in_cpu_data(cpumask_t *mask); extern void mdesc_populate_present_mask(cpumask_t *mask); +extern void mdesc_get_page_sizes(cpumask_t *mask, unsigned long *pgsz_mask); extern void sun4v_mdesc_init(void); |