mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
Staging: comedi: drivers.c: fix PAGE_KERNEL_NOCACHE issue
Not all arches have PAGE_KERNEL_NOCACHE, so use the "normal" PAGE_KERNEL on those that do not have it. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
5ad7b85b90
commit
408093d2a1
1 changed files with 4 additions and 0 deletions
|
@ -502,7 +502,11 @@ int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
|
||||||
}
|
}
|
||||||
if (i == n_pages) {
|
if (i == n_pages) {
|
||||||
async->prealloc_buf =
|
async->prealloc_buf =
|
||||||
|
#ifdef PAGE_KERNEL_NOCACHE
|
||||||
vmap(pages, n_pages, VM_MAP, PAGE_KERNEL_NOCACHE);
|
vmap(pages, n_pages, VM_MAP, PAGE_KERNEL_NOCACHE);
|
||||||
|
#else
|
||||||
|
vmap(pages, n_pages, VM_MAP, PAGE_KERNEL);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
vfree(pages);
|
vfree(pages);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue