[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XenPPC] [linux-ppc-2.6] [POWERPC] it is now saafe to always use xencomm_create_mini()
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |