diff options
author | Christoph Hellwig <hch@lst.de> | 2017-12-29 08:54:05 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-01-08 11:46:23 -0800 |
commit | e8d5134833006a46fcbefc5f4a84d0b62bd520e7 (patch) | |
tree | dbd532f4ef91828e251a291c967ee3afe71fd475 /tools/thermal | |
parent | e7744aa25cffe26d3767c9ffcf4e130cca1dff00 (diff) | |
download | linux-stable-e8d5134833006a46fcbefc5f4a84d0b62bd520e7.tar.gz linux-stable-e8d5134833006a46fcbefc5f4a84d0b62bd520e7.tar.bz2 linux-stable-e8d5134833006a46fcbefc5f4a84d0b62bd520e7.zip |
memremap: change devm_memremap_pages interface to use struct dev_pagemap
This new interface is similar to how struct device (and many others)
work. The caller initializes a 'struct dev_pagemap' as required
and calls 'devm_memremap_pages'. This allows the pagemap structure to
be embedded in another structure and thus container_of can be used. In
this way application specific members can be stored in a containing
struct.
This will be used by the P2P infrastructure and HMM could probably
be cleaned up to use it as well (instead of having it's own, similar
'hmm_devmem_pages_create' function).
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/thermal')
0 files changed, 0 insertions, 0 deletions