projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ad7b85
)
Staging: comedi: drivers.c: fix PAGE_KERNEL_NOCACHE issue
author
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 9 Jun 2011 19:13:08 +0000
(12:13 -0700)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 9 Jun 2011 19:13:53 +0000
(12:13 -0700)
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>
drivers/staging/comedi/drivers.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/comedi/drivers.c
b/drivers/staging/comedi/drivers.c
index 6d60e91b3a859dfe6fa03a851e7a70860df657b0..db1fd63aaab383a14c10fd70af15195f98f5a820 100644
(file)
--- a/
drivers/staging/comedi/drivers.c
+++ b/
drivers/staging/comedi/drivers.c
@@
-502,7
+502,11
@@
int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
}
if (i == n_pages) {
async->prealloc_buf =
+#ifdef PAGE_KERNEL_NOCACHE
vmap(pages, n_pages, VM_MAP, PAGE_KERNEL_NOCACHE);
+#else
+ vmap(pages, n_pages, VM_MAP, PAGE_KERNEL);
+#endif
}
vfree(pages);