diff options
author | Dan Williams <dan.j.williams@intel.com> | 2017-05-30 08:00:34 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2017-06-28 01:29:00 +0200 |
commit | f2b612578e163b49661ece2fe01dfafb0e78f545 (patch) | |
tree | 76febb778de07a1c18cd41fdc14e1a44b5a95dd6 /drivers/nvdimm/pmem.c | |
parent | x86, dax, libnvdimm: remove wb_cache_pmem() indirection (diff) | |
download | linux-f2b612578e163b49661ece2fe01dfafb0e78f545.tar.xz linux-f2b612578e163b49661ece2fe01dfafb0e78f545.zip |
x86, libnvdimm, pmem: move arch_invalidate_pmem() to libnvdimm
Kill this globally defined wrapper and move to libnvdimm so that we can
ultimately remove include/linux/pmem.h and asm/pmem.h.
Cc: <x86@kernel.org>
Cc: Jeff Moyer <jmoyer@redhat.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Matthew Wilcox <mawilcox@microsoft.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/pmem.c')
-rw-r--r-- | drivers/nvdimm/pmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c index 3b87702d46bb..68737bc68a07 100644 --- a/drivers/nvdimm/pmem.c +++ b/drivers/nvdimm/pmem.c @@ -71,7 +71,7 @@ static int pmem_clear_poison(struct pmem_device *pmem, phys_addr_t offset, badblocks_clear(&pmem->bb, sector, cleared); } - invalidate_pmem(pmem->virt_addr + offset, len); + arch_invalidate_pmem(pmem->virt_addr + offset, len); return rc; } |