/* Releases ownership of the mutual exclusion lock, and restores the previous task priority level. */
VOID CoreReleaseLock(IN EFI_LOCK *Lock)
/* Releases ownership of the mutual exclusion lock, and restores the previous task priority level. */
VOID CoreReleaseLock(IN EFI_LOCK *Lock)
{
  EFI_TPL  Tpl;
  ASSERT (Lock != NULL);
  ASSERT (Lock->Lock == EfiLockAcquired);
  Tpl = Lock->OwnerTpl;
  Lock->Lock = EfiLockReleased;
  CoreRestoreTpl (Tpl);
}