aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2005-09-23 01:01:49 -0400
committerStephen Rothwell <sfr@canb.auug.org.au>2005-09-23 01:01:49 -0400
commit47db360328582000a7a46390cfa385b8df07b44f (patch)
treeb6f57ac073945c7630a881173006e51f3f42a88f
parent3ab42407fe0628c7880b21eff057566390865319 (diff)
ppc64 iSeries: Move setup of systemcfg->platform into iSeries device tree
Add /chosen/linux,platform to the device tree so we can remove iSeries specific code in setup_system() to set systemcfg->platform. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r--arch/ppc64/kernel/iSeries_setup.c5
-rw-r--r--arch/ppc64/kernel/setup.c9
2 files changed, 5 insertions, 9 deletions
diff --git a/arch/ppc64/kernel/iSeries_setup.c b/arch/ppc64/kernel/iSeries_setup.c
index 639f400d6b0c..4895f674a4ba 100644
--- a/arch/ppc64/kernel/iSeries_setup.c
+++ b/arch/ppc64/kernel/iSeries_setup.c
@@ -1052,6 +1052,11 @@ void build_flat_dt(struct iseries_flat_dt *dt)
1052 dt_prop_u64_list(dt, "reg", tmp, 2); 1052 dt_prop_u64_list(dt, "reg", tmp, 2);
1053 dt_end_node(dt); 1053 dt_end_node(dt);
1054 1054
1055 /* /chosen */
1056 dt_start_node(dt, "chosen");
1057 dt_prop_u32(dt, "linux,platform", PLATFORM_ISERIES_LPAR);
1058 dt_end_node(dt);
1059
1055 dt_end_node(dt); 1060 dt_end_node(dt);
1056 1061
1057 dt_push_u32(dt, OF_DT_END); 1062 dt_push_u32(dt, OF_DT_END);
diff --git a/arch/ppc64/kernel/setup.c b/arch/ppc64/kernel/setup.c
index 6c1cd3bab28e..776b55b45e1b 100644
--- a/arch/ppc64/kernel/setup.c
+++ b/arch/ppc64/kernel/setup.c
@@ -543,14 +543,6 @@ void __init setup_system(void)
543{ 543{
544 DBG(" -> setup_system()\n"); 544 DBG(" -> setup_system()\n");
545 545
546#ifdef CONFIG_PPC_ISERIES
547 /* pSeries systems are identified in prom.c via OF. */
548 if (itLpNaca.xLparInstalled == 1)
549 systemcfg->platform = PLATFORM_ISERIES_LPAR;
550
551 ppc_md.init_early();
552#else /* CONFIG_PPC_ISERIES */
553
554 /* 546 /*
555 * Unflatten the device-tree passed by prom_init or kexec 547 * Unflatten the device-tree passed by prom_init or kexec
556 */ 548 */
@@ -608,7 +600,6 @@ void __init setup_system(void)
608 strlcpy(saved_command_line, cmd_line, COMMAND_LINE_SIZE); 600 strlcpy(saved_command_line, cmd_line, COMMAND_LINE_SIZE);
609 601
610 parse_early_param(); 602 parse_early_param();
611#endif /* !CONFIG_PPC_ISERIES */
612 603
613#ifdef CONFIG_SMP 604#ifdef CONFIG_SMP
614 /* 605 /*