LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* patch for powerpc lparcfg.c
@ 2006-04-13 23:09 Carl Love
  2006-04-14  0:25 ` Nathan Lynch
  0 siblings, 1 reply; 4+ messages in thread
From: Carl Love @ 2006-04-13 23:09 UTC (permalink / raw)
  To: linuxppc-dev, cel

[-- Attachment #1: Type: text/plain, Size: 529 bytes --]


I created the attached patch to print the partition name along with the
other partition information reported in /proc/ppc64/lparcfg for the
powerpc systems.  The patch adds a single line of code to the
arch/powerpc/kernel/lparcfg.c file.  I tested the code on a power5 box.
I would suggest adding the same line to the I series code at line 101 so
the partition name is printed on I series hardware as well.  Since I
don't have access to I series hardware to test on I did not include this
change in my patch file.

Carl Love

 

[-- Attachment #2: linux-2.6.17-rc1-git8-lparcfg.patch --]
[-- Type: text/x-patch, Size: 593 bytes --]

diff -rauN -X /home/carll/dontdiff linux-2.6.17-rc1-git8/arch/powerpc/kernel/lparcfg.c linux-2.6.17-rc1-git8-new/arch/powerpc/kernel/lparcfg.c
--- linux-2.6.17-rc1-git8/arch/powerpc/kernel/lparcfg.c	2006-04-13 12:25:11.000000000 -0700
+++ linux-2.6.17-rc1-git8-new/arch/powerpc/kernel/lparcfg.c	2006-04-13 15:29:02.000000000 -0700
@@ -360,6 +360,9 @@
 
 	seq_printf(m, "system_type=%s\n", model);
 
+	seq_printf(m, "partition_name=%s\n",
+		   get_property(rootdn, "ibm,partition-name", NULL));
+
 	seq_printf(m, "partition_id=%d\n", (int)lp_index);
 
 	rtas_node = find_path_device("/rtas");

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-15 17:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-13 23:09 patch for powerpc lparcfg.c Carl Love
2006-04-14  0:25 ` Nathan Lynch
     [not found]   ` <1145035146.5214.16.camel@dyn9047021119.beaverton.ibm.com>
     [not found]     ` <20060414175039.GD25138@localdomain>
2006-04-15  0:16       ` Carl Love
2006-04-15 17:31         ` Olof Johansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox