Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 890db403 authored by David S. Miller's avatar David S. Miller
Browse files

sparc: Call OF and MD cpu scanning explicitly from paging_init()



We need to split up the cpu present mask setup from the cpu_data
initialization, and this is a first step towards that.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5052f525
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -87,6 +87,7 @@ extern int of_node_to_nid(struct device_node *dp);

extern void prom_build_devicetree(void);
extern void of_populate_present_mask(void);
extern void of_fill_in_cpu_data(void);

/* Dummy ref counting routines - to be implemented later */
static inline struct device_node *of_node_get(struct device_node *node)
+0 −4
Original line number Diff line number Diff line
@@ -919,7 +919,6 @@ void __init sun4v_mdesc_init(void)
{
	struct mdesc_handle *hp;
	unsigned long len, real_len, status;
	cpumask_t mask;

	(void) sun4v_mach_desc(0UL, 0UL, &len);

@@ -943,7 +942,4 @@ void __init sun4v_mdesc_init(void)
	cur_mdesc = hp;

	report_platform_properties();

	cpus_setall(mask);
	mdesc_fill_in_cpu_data(mask);
}
+0 −1
Original line number Diff line number Diff line
@@ -22,7 +22,6 @@ static inline int is_root_node(const struct device_node *dp)

extern char *build_path_component(struct device_node *dp);
extern void of_console_init(void);
extern void of_fill_in_cpu_data(void);

extern unsigned int prom_early_allocated;

+0 −2
Original line number Diff line number Diff line
@@ -313,6 +313,4 @@ void __init prom_build_devicetree(void)

	printk("PROM: Built device tree with %u bytes of memory.\n",
	       prom_early_allocated);

	of_fill_in_cpu_data();
}
+1 −0
Original line number Diff line number Diff line
@@ -358,6 +358,7 @@ void __init paging_init(void)
	protection_map[15] = PAGE_SHARED;
	btfixup();
	prom_build_devicetree();
	of_fill_in_cpu_data();
	device_scan();
}

Loading