diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2014-12-12 15:12:54 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2014-12-12 15:12:54 +0100 |
commit | 0e16eeef08ed9b27f0fbc7f02a562a81e10c4119 (patch) | |
tree | c2a804ea47a323529c7c3017978bcf9eecce49b6 /driver | |
parent | 7339d1a748bdbc7a41abd456238a5a66aac64c53 (diff) | |
download | ipecamera-0e16eeef08ed9b27f0fbc7f02a562a81e10c4119.tar.gz ipecamera-0e16eeef08ed9b27f0fbc7f02a562a81e10c4119.tar.bz2 ipecamera-0e16eeef08ed9b27f0fbc7f02a562a81e10c4119.tar.xz ipecamera-0e16eeef08ed9b27f0fbc7f02a562a81e10c4119.zip |
Do not set __GFP_DMA flag while allocating DMA pages (the flag is required for devices capable of addressing 24-bits only and may significantly degrade performance
Diffstat (limited to 'driver')
-rw-r--r-- | driver/kmem.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/driver/kmem.c b/driver/kmem.c index 4f36e79..b323272 100644 --- a/driver/kmem.c +++ b/driver/kmem.c @@ -147,9 +147,6 @@ int pcidriver_kmem_alloc(pcidriver_privdata_t *privdata, kmem_handle_t *kmem_han case PCILIB_KMEM_TYPE_PAGE: flags = GFP_KERNEL; - if ((kmem_entry->type == PCILIB_KMEM_TYPE_DMA_S2C_PAGE)||(kmem_entry->type == PCILIB_KMEM_TYPE_DMA_C2S_PAGE)) - flags |= __GFP_DMA; - if (kmem_handle->size == 0) kmem_handle->size = PAGE_SIZE; else if (kmem_handle->size%PAGE_SIZE) |