]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
memremap: add MEMREMAP_WC flag
authorBrian Starkey <brian.starkey@arm.com>
Tue, 22 Mar 2016 21:28:00 +0000 (14:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2016 22:36:02 +0000 (15:36 -0700)
commitc907e0eb43a522de60fb651c011c553f87273222
tree7118a20b13c415b508666d1c0a797e972e2ba4eb
parentcf61e2a1487d833e4748dead4096584de70bf742
memremap: add MEMREMAP_WC flag

Add a flag to memremap() for writecombine mappings.  Mappings satisfied
by this flag will not be cached, however writes may be delayed or
combined into more efficient bursts.  This is most suitable for buffers
written sequentially by the CPU for use by other DMA devices.

Signed-off-by: Brian Starkey <brian.starkey@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/io.h
kernel/memremap.c