Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151164
b: refs/heads/master
c: 890db40
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Jun 16, 2009
1 parent bd7f01f commit 8f9a7db
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5052f525fde2dcb550cc3b4f15d2bfdd2a5c8782
refs/heads/master: 890db403d59fbeaf273ed019d0b1862223d80a9a
1 change: 1 addition & 0 deletions trunk/arch/sparc/include/asm/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 0 additions & 4 deletions trunk/arch/sparc/kernel/mdesc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
}
1 change: 0 additions & 1 deletion trunk/arch/sparc/kernel/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/sparc/kernel/prom_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 change: 1 addition & 0 deletions trunk/arch/sparc/mm/init_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
5 changes: 4 additions & 1 deletion trunk/arch/sparc/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -1806,9 +1806,12 @@ void __init paging_init(void)
real_setup_per_cpu_areas();

prom_build_devicetree();
of_fill_in_cpu_data();

if (tlb_type == hypervisor)
if (tlb_type == hypervisor) {
sun4v_mdesc_init();
mdesc_fill_in_cpu_data(CPU_MASK_ALL);
}

/* Once the OF device tree and MDESC have been setup, we know
* the list of possible cpus. Therefore we can allocate the
Expand Down

0 comments on commit 8f9a7db

Please sign in to comment.