[PATCH 9/17] ppc64: Move definition of xItLpQueue

Michael Ellerman michael at ellerman.id.au
Wed Jun 29 17:49:52 EST 2005


Hi,

The xItLpQueue is declared in LparData.c, move it into ItLpQueue.c

LparData.c is the only other file that needs to know about xItLpQueue, so
remove the extern definition from ItLpQueue.h and put it in LparData.c
directly.


Signed-off-by: Michael Ellerman <michael at ellerman.id.au>
--
 arch/ppc64/kernel/ItLpQueue.c         |    8 ++++++++
 arch/ppc64/kernel/LparData.c          |    7 +------
 include/asm-ppc64/iSeries/ItLpQueue.h |    1 -
 3 files changed, 9 insertions(+), 7 deletions(-)

Index: ppc64-2.6/arch/ppc64/kernel/ItLpQueue.c
===================================================================
--- ppc64-2.6.orig/arch/ppc64/kernel/ItLpQueue.c
+++ ppc64-2.6/arch/ppc64/kernel/ItLpQueue.c
@@ -20,6 +20,14 @@
 #include <asm/iSeries/HvLpEvent.h>
 #include <asm/iSeries/HvCallEvent.h>
 
+/*
+ * The LpQueue is used to pass event data from the hypervisor to
+ * the partition.  This is where I/O interrupt events are communicated.
+ *
+ * It is written to by the hypervisor so cannot end up in the BSS.
+ */
+struct ItLpQueue xItLpQueue __attribute__((__section__(".data")));
+
 static char *event_types[9] = {
 	"Hypervisor\t\t",
 	"Machine Facilities\t",
Index: ppc64-2.6/arch/ppc64/kernel/LparData.c
===================================================================
--- ppc64-2.6.orig/arch/ppc64/kernel/LparData.c
+++ ppc64-2.6/arch/ppc64/kernel/LparData.c
@@ -28,13 +28,6 @@
 #include <asm/iSeries/IoHriProcessorVpd.h>
 #include <asm/iSeries/ItSpCommArea.h>
 
-/* The LpQueue is used to pass event data from the hypervisor to
- * the partition.  This is where I/O interrupt events are communicated.
- */
-
-/* May be filled in by the hypervisor so cannot end up in the BSS */
-struct ItLpQueue xItLpQueue __attribute__((__section__(".data")));
-
 
 /* The HvReleaseData is the root of the information shared between 
  * the hypervisor and Linux.  



More information about the Linuxppc64-dev mailing list