git: a69f8104665c - main - smist: Remove unneeded Giant from bus_dma_tag_create().
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 Dec 2021 01:55:07 UTC
The branch main has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=a69f8104665c7356b08d81728d406c595973672c commit a69f8104665c7356b08d81728d406c595973672c Author: Alexander Motin <mav@FreeBSD.org> AuthorDate: 2021-12-10 01:54:22 +0000 Commit: Alexander Motin <mav@FreeBSD.org> CommitDate: 2021-12-10 01:54:22 +0000 smist: Remove unneeded Giant from bus_dma_tag_create(). bus_dmamap_load() call uses BUS_DMA_NOWAIT. MFC after: 2 weeks --- sys/x86/cpufreq/smist.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/x86/cpufreq/smist.c b/sys/x86/cpufreq/smist.c index fda7cb2f52bc..129ec2d4884b 100644 --- a/sys/x86/cpufreq/smist.c +++ b/sys/x86/cpufreq/smist.c @@ -205,8 +205,7 @@ set_ownership(device_t dev) /*alignment*/ PAGE_SIZE, /*no boundary*/ 0, /*lowaddr*/ BUS_SPACE_MAXADDR_32BIT, /*highaddr*/ BUS_SPACE_MAXADDR, NULL, NULL, /*maxsize*/ PAGE_SIZE, /*segments*/ 1, - /*maxsegsize*/ PAGE_SIZE, 0, busdma_lock_mutex, &Giant, - &tag) != 0) { + /*maxsegsize*/ PAGE_SIZE, 0, NULL, NULL, &tag) != 0) { device_printf(dev, "can't create mem tag\n"); return (ENXIO); }