Now that contigfree() does not require Giant, don't grab it in busdma.

This commit is contained in:
Scott Long 2004-03-13 15:42:59 +00:00
parent 980a9b846b
commit 11d905ecd8
6 changed files with 0 additions and 12 deletions

View File

@ -458,9 +458,7 @@ bus_dmamem_free(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map)
if ((dmat->maxsize <= PAGE_SIZE) && dmat->lowaddr >= ptoa(Maxmem))
free(vaddr, M_DEVBUF);
else {
mtx_lock(&Giant);
contigfree(vaddr, dmat->maxsize, M_DEVBUF);
mtx_unlock(&Giant);
}
}

View File

@ -453,9 +453,7 @@ bus_dmamem_free(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map)
&& dmat->lowaddr >= ptoa((vm_paddr_t)Maxmem))
free(vaddr, M_DEVBUF);
else {
mtx_lock(&Giant);
contigfree(vaddr, dmat->maxsize, M_DEVBUF);
mtx_unlock(&Giant);
}
}

View File

@ -453,9 +453,7 @@ bus_dmamem_free(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map)
&& dmat->lowaddr >= ptoa((vm_paddr_t)Maxmem))
free(vaddr, M_DEVBUF);
else {
mtx_lock(&Giant);
contigfree(vaddr, dmat->maxsize, M_DEVBUF);
mtx_unlock(&Giant);
}
}

View File

@ -458,9 +458,7 @@ bus_dmamem_free(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map)
if ((dmat->maxsize <= PAGE_SIZE) && dmat->lowaddr >= ptoa(Maxmem))
free(vaddr, M_DEVBUF);
else {
mtx_lock(&Giant);
contigfree(vaddr, dmat->maxsize, M_DEVBUF);
mtx_unlock(&Giant);
}
}

View File

@ -296,9 +296,7 @@ bus_dmamem_free(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map)
if (dmat->maxsize <= PAGE_SIZE)
free(vaddr, M_DEVBUF);
else {
mtx_lock(&Giant);
contigfree(vaddr, dmat->maxsize, M_DEVBUF);
mtx_unlock(&Giant);
}
}

View File

@ -653,9 +653,7 @@ nexus_dmamem_free(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map)
if ((dmat->dt_maxsize <= PAGE_SIZE))
free(vaddr, M_DEVBUF);
else {
mtx_lock(&Giant);
contigfree(vaddr, dmat->dt_maxsize, M_DEVBUF);
mtx_unlock(&Giant);
}
}