Re: [PATCH 06/11] of/flattree: merge early_init_devtree() and early_init_move_devtree()
From: Grant Likely <hidden>
Date: 2009-12-11 06:20:09
Also in:
linux-devicetree, sparclinux
From: Grant Likely <hidden>
Date: 2009-12-11 06:20:09
Also in:
linux-devicetree, sparclinux
On Mon, Dec 7, 2009 at 12:08 AM, Jeremy Kerr [off-list ref] wr= ote:
Hi Grant,quoted
+ =A0 =A0 /* Scan memory nodes and rebuild LMBs */ + =A0 =A0 lmb_init(); + =A0 =A0 of_scan_flat_dt(early_init_dt_scan_root, NULL); + =A0 =A0 of_scan_flat_dt(early_init_dt_scan_memory, NULL); + + =A0 =A0 /* Save command line for /proc/cmdline and then parse paramete=
rs */
quoted
+ =A0 =A0 strlcpy(boot_command_line, cmd_line, COMMAND_LINE_SIZE); + =A0 =A0 parse_early_param(); + + =A0 =A0 /* This is in an arbitrary spot, but it is temporary. =A0After=
all
quoted
+ =A0 =A0 =A0* the common code is merged, the structure of the early ini=
t
quoted
+ =A0 =A0 =A0* code will be reevaluated and refactored */ + =A0 =A0 early_init_devtree_arch(); + + =A0 =A0 lmb_analyze(); + =A0 =A0 lmb_dump_all();So we're assuming that the arch has lmb support, or should we make this conditional on CONFIG_HAVE_LMB?
I'm not making any assumptions yet. I'm just merging the code. A lot of it needs to be refactored after the merge. Feel free to send patches to rework want you need. g. --=20 Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.