]> git.baikalelectronics.ru Git - kernel.git/commit
io-mapping: Always create a struct to hold metadata about the io-mapping
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 19 Aug 2016 15:54:26 +0000 (16:54 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 19 Aug 2016 16:13:35 +0000 (17:13 +0100)
commit3b8c616a131970bfc3ce0a0af4654a66f157c217
tree3053466d3791ede38d33e61f34b8541bae8d3a43
parent3bbb95aa1204095b2c6b0b2a1a39f7fe99a386bc
io-mapping: Always create a struct to hold metadata about the io-mapping

Currently, we only allocate a structure to hold metadata if we need to
allocate an ioremap for every access, such as on x86-32. However, it
would be useful to store basic information about the io-mapping, such as
its page protection, on all platforms.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: linux-mm@kvack.org
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160819155428.1670-4-chris@chris-wilson.co.uk
include/linux/io-mapping.h