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>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user