WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

[XenPPC] [linux-ppc-2.6] [POWERPC] it is now saafe to always use xencomm

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [linux-ppc-2.6] [POWERPC] it is now saafe to always use xencomm_create_mini()
From: Xen patchbot-linux-ppc-2.6 <patchbot-linux-ppc-2.6@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 10 Aug 2006 21:22:42 +0000
Delivery-date: Thu, 10 Aug 2006 14:29:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 780be3ca25eaccee7a5835acadb43a40e59c5e02
# Parent  0b82e0cba7d3676bc5ca619cd57047f03bbce253
[POWERPC] it is now saafe to always use xencomm_create_mini()

slab hack BEGONE!

Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
 arch/powerpc/platforms/xen/hcall.c |   15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)

diff -r 0b82e0cba7d3 -r 780be3ca25ea arch/powerpc/platforms/xen/hcall.c
--- a/arch/powerpc/platforms/xen/hcall.c        Thu Aug 10 16:53:52 2006 -0400
+++ b/arch/powerpc/platforms/xen/hcall.c        Thu Aug 10 16:57:23 2006 -0400
@@ -75,7 +75,6 @@ int HYPERVISOR_xen_version(int cmd, void
        const unsigned long hcall = __HYPERVISOR_xen_version;
        int argsize;
        int rc;
-       static int slab;
 
        switch (cmd) {
        case XENVER_version:
@@ -106,22 +105,12 @@ int HYPERVISOR_xen_version(int cmd, void
                printk("%s: unknown version cmd %d\n", __func__, cmd);
                return -ENOSYS;
        }
-
-       if (!slab) {
-               slab = slab_is_available();
-       }
-       if (slab)
-               rc = xencomm_create(arg, argsize, &desc, GFP_KERNEL);
-       else
-               rc = xencomm_create_mini(xc_area, XENCOMM_MINI_AREA,
-                                        arg, argsize, &desc);
+       rc = xencomm_create_mini(xc_area, XENCOMM_MINI_AREA,
+                                arg, argsize, &desc);
        if (rc)
                return rc;
 
        rc = plpar_hcall_norets(XEN_MARK(hcall), cmd, __pa(desc));
-
-       if (slab)
-               xencomm_free(desc);
 
        return rc;
 }

_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [linux-ppc-2.6] [POWERPC] it is now saafe to always use xencomm_create_mini(), Xen patchbot-linux-ppc-2 . 6 <=