X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fppc64%2Fkernel%2Fviopath.c;h=74f185ec91f8cef54304376448255ca150ea1bb0;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=66a8102398fa73423a6671c9dfbffec0fca086c3;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/arch/ppc64/kernel/viopath.c b/arch/ppc64/kernel/viopath.c index 66a810239..74f185ec9 100644 --- a/arch/ppc64/kernel/viopath.c +++ b/arch/ppc64/kernel/viopath.c @@ -64,7 +64,7 @@ static struct viopathStatus { int numberAllocated; } viopathStatus[HVMAXARCHITECTEDLPS]; -static spinlock_t statuslock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(statuslock); /* * For each kind of event we allocate a buffer that is @@ -473,7 +473,7 @@ static int allocateEvents(HvLpIndex remoteLp, int numEvents) parms.used_wait_atomic = 0; parms.sem = &Semaphore; } - mf_allocateLpEvents(remoteLp, HvLpEvent_Type_VirtualIo, 250, /* It would be nice to put a real number here! */ + mf_allocate_lp_events(remoteLp, HvLpEvent_Type_VirtualIo, 250, /* It would be nice to put a real number here! */ numEvents, &viopath_donealloc, &parms); if (in_atomic()) { while (atomic_read(&wait_atomic)) @@ -582,7 +582,7 @@ int viopath_close(HvLpIndex remoteLp, int subtype, int numReq) doneAllocParms.used_wait_atomic = 0; doneAllocParms.sem = &Semaphore; - mf_deallocateLpEvents(remoteLp, HvLpEvent_Type_VirtualIo, + mf_deallocate_lp_events(remoteLp, HvLpEvent_Type_VirtualIo, numReq, &viopath_donealloc, &doneAllocParms); down(&Semaphore);