Loading arch/sparc/kernel/prom.h +3 −5 Original line number Diff line number Diff line Loading @@ -24,11 +24,9 @@ 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 struct device_node * __init prom_create_node(phandle node, struct device_node *parent); extern unsigned int prom_early_allocated; extern struct device_node * __init prom_build_tree(struct device_node *parent, phandle node, struct device_node ***nextp); #endif /* __PROM_H */ arch/sparc/kernel/prom_32.c +2 −18 Original line number Diff line number Diff line Loading @@ -27,8 +27,6 @@ #include "prom.h" static unsigned int prom_early_allocated; void * __init prom_early_alloc(unsigned long size) { void *ret; Loading Loading @@ -179,7 +177,7 @@ EXPORT_SYMBOL(of_console_options); extern void restore_current(void); static void __init of_console_init(void) void __init of_console_init(void) { char *msg = "OF stdout device is: %s\n"; struct device_node *dp; Loading Loading @@ -297,20 +295,6 @@ static void __init of_console_init(void) printk(msg, of_console_path); } void __init prom_build_devicetree(void) void __init of_fill_in_cpu_data(void) { struct device_node **nextp; allnodes = prom_create_node(prom_root_node, NULL); allnodes->path_component_name = ""; allnodes->full_name = "/"; nextp = &allnodes->allnext; allnodes->child = prom_build_tree(allnodes, prom_getchild(allnodes->node), &nextp); of_console_init(); printk("PROM: Built device tree with %u bytes of memory.\n", prom_early_allocated); } arch/sparc/kernel/prom_64.c +7 −26 Original line number Diff line number Diff line Loading @@ -32,8 +32,6 @@ #include "prom.h" static unsigned int prom_early_allocated __initdata; void * __init prom_early_alloc(unsigned long size) { unsigned long paddr = lmb_alloc(size, SMP_CACHE_BYTES); Loading Loading @@ -401,11 +399,15 @@ struct device_node *of_find_node_by_cpuid(int cpuid) return NULL; } static void __init of_fill_in_cpu_data(void) void __init of_fill_in_cpu_data(void) { struct device_node *dp; const char *mid_prop = get_mid_prop(); const char *mid_prop; if (tlb_type == hypervisor) return; mid_prop = get_mid_prop(); ncpus_probed = 0; for_each_node_by_type(dp, "cpu") { int cpuid = of_getintprop_default(dp, mid_prop, -1); Loading Loading @@ -533,7 +535,7 @@ EXPORT_SYMBOL(of_console_path); char *of_console_options; EXPORT_SYMBOL(of_console_options); static void __init of_console_init(void) void __init of_console_init(void) { char *msg = "OF stdout device is: %s\n"; struct device_node *dp; Loading Loading @@ -576,24 +578,3 @@ static void __init of_console_init(void) printk(msg, of_console_path); } void __init prom_build_devicetree(void) { struct device_node **nextp; allnodes = prom_create_node(prom_root_node, NULL); allnodes->path_component_name = ""; allnodes->full_name = "/"; nextp = &allnodes->allnext; allnodes->child = prom_build_tree(allnodes, prom_getchild(allnodes->node), &nextp); of_console_init(); printk("PROM: Built device tree with %u bytes of memory.\n", prom_early_allocated); if (tlb_type != hypervisor) of_fill_in_cpu_data(); } arch/sparc/kernel/prom_common.c +27 −5 Original line number Diff line number Diff line Loading @@ -216,7 +216,7 @@ static char * __init get_one_property(phandle node, const char *name) return buf; } struct device_node * __init prom_create_node(phandle node, static struct device_node * __init prom_create_node(phandle node, struct device_node *parent) { struct device_node *dp; Loading Loading @@ -261,7 +261,7 @@ static char * __init build_full_name(struct device_node *dp) return n; } struct device_node * __init prom_build_tree(struct device_node *parent, static struct device_node * __init prom_build_tree(struct device_node *parent, phandle node, struct device_node ***nextp) { Loading Loading @@ -293,3 +293,25 @@ struct device_node * __init prom_build_tree(struct device_node *parent, return ret; } unsigned int prom_early_allocated __initdata; void __init prom_build_devicetree(void) { struct device_node **nextp; allnodes = prom_create_node(prom_root_node, NULL); allnodes->path_component_name = ""; allnodes->full_name = "/"; nextp = &allnodes->allnext; allnodes->child = prom_build_tree(allnodes, prom_getchild(allnodes->node), &nextp); of_console_init(); printk("PROM: Built device tree with %u bytes of memory.\n", prom_early_allocated); of_fill_in_cpu_data(); } Loading
arch/sparc/kernel/prom.h +3 −5 Original line number Diff line number Diff line Loading @@ -24,11 +24,9 @@ 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 struct device_node * __init prom_create_node(phandle node, struct device_node *parent); extern unsigned int prom_early_allocated; extern struct device_node * __init prom_build_tree(struct device_node *parent, phandle node, struct device_node ***nextp); #endif /* __PROM_H */
arch/sparc/kernel/prom_32.c +2 −18 Original line number Diff line number Diff line Loading @@ -27,8 +27,6 @@ #include "prom.h" static unsigned int prom_early_allocated; void * __init prom_early_alloc(unsigned long size) { void *ret; Loading Loading @@ -179,7 +177,7 @@ EXPORT_SYMBOL(of_console_options); extern void restore_current(void); static void __init of_console_init(void) void __init of_console_init(void) { char *msg = "OF stdout device is: %s\n"; struct device_node *dp; Loading Loading @@ -297,20 +295,6 @@ static void __init of_console_init(void) printk(msg, of_console_path); } void __init prom_build_devicetree(void) void __init of_fill_in_cpu_data(void) { struct device_node **nextp; allnodes = prom_create_node(prom_root_node, NULL); allnodes->path_component_name = ""; allnodes->full_name = "/"; nextp = &allnodes->allnext; allnodes->child = prom_build_tree(allnodes, prom_getchild(allnodes->node), &nextp); of_console_init(); printk("PROM: Built device tree with %u bytes of memory.\n", prom_early_allocated); }
arch/sparc/kernel/prom_64.c +7 −26 Original line number Diff line number Diff line Loading @@ -32,8 +32,6 @@ #include "prom.h" static unsigned int prom_early_allocated __initdata; void * __init prom_early_alloc(unsigned long size) { unsigned long paddr = lmb_alloc(size, SMP_CACHE_BYTES); Loading Loading @@ -401,11 +399,15 @@ struct device_node *of_find_node_by_cpuid(int cpuid) return NULL; } static void __init of_fill_in_cpu_data(void) void __init of_fill_in_cpu_data(void) { struct device_node *dp; const char *mid_prop = get_mid_prop(); const char *mid_prop; if (tlb_type == hypervisor) return; mid_prop = get_mid_prop(); ncpus_probed = 0; for_each_node_by_type(dp, "cpu") { int cpuid = of_getintprop_default(dp, mid_prop, -1); Loading Loading @@ -533,7 +535,7 @@ EXPORT_SYMBOL(of_console_path); char *of_console_options; EXPORT_SYMBOL(of_console_options); static void __init of_console_init(void) void __init of_console_init(void) { char *msg = "OF stdout device is: %s\n"; struct device_node *dp; Loading Loading @@ -576,24 +578,3 @@ static void __init of_console_init(void) printk(msg, of_console_path); } void __init prom_build_devicetree(void) { struct device_node **nextp; allnodes = prom_create_node(prom_root_node, NULL); allnodes->path_component_name = ""; allnodes->full_name = "/"; nextp = &allnodes->allnext; allnodes->child = prom_build_tree(allnodes, prom_getchild(allnodes->node), &nextp); of_console_init(); printk("PROM: Built device tree with %u bytes of memory.\n", prom_early_allocated); if (tlb_type != hypervisor) of_fill_in_cpu_data(); }
arch/sparc/kernel/prom_common.c +27 −5 Original line number Diff line number Diff line Loading @@ -216,7 +216,7 @@ static char * __init get_one_property(phandle node, const char *name) return buf; } struct device_node * __init prom_create_node(phandle node, static struct device_node * __init prom_create_node(phandle node, struct device_node *parent) { struct device_node *dp; Loading Loading @@ -261,7 +261,7 @@ static char * __init build_full_name(struct device_node *dp) return n; } struct device_node * __init prom_build_tree(struct device_node *parent, static struct device_node * __init prom_build_tree(struct device_node *parent, phandle node, struct device_node ***nextp) { Loading Loading @@ -293,3 +293,25 @@ struct device_node * __init prom_build_tree(struct device_node *parent, return ret; } unsigned int prom_early_allocated __initdata; void __init prom_build_devicetree(void) { struct device_node **nextp; allnodes = prom_create_node(prom_root_node, NULL); allnodes->path_component_name = ""; allnodes->full_name = "/"; nextp = &allnodes->allnext; allnodes->child = prom_build_tree(allnodes, prom_getchild(allnodes->node), &nextp); of_console_init(); printk("PROM: Built device tree with %u bytes of memory.\n", prom_early_allocated); of_fill_in_cpu_data(); }