summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Zwisler <ross.zwisler@linux.intel.com>2016-01-06 11:36:03 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2016-01-07 20:19:49 +1100
commit9b6671601fe49225cca58e58e0ee0c1f3841581a (patch)
tree28d4aea6f10eef3e98d085e96392cc0f7c15dc6c
parentcc4b49366fae4a14b8c56e7dbb8120fef47074ce (diff)
downloadlinux-next-9b6671601fe49225cca58e58e0ee0c1f3841581a.tar.gz
pmem-add-wb_cache_pmem-to-the-pmem-api-v6
Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--arch/x86/include/asm/pmem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/pmem.h b/arch/x86/include/asm/pmem.h
index 9cc633ccecc1..c57fd1ea9689 100644
--- a/arch/x86/include/asm/pmem.h
+++ b/arch/x86/include/asm/pmem.h
@@ -134,7 +134,7 @@ static inline void arch_clear_pmem(void __pmem *addr, size_t size)
void *vaddr = (void __force *)addr;
memset(vaddr, 0, size);
- arch_wb_cache_pmem(vaddr, size);
+ arch_wb_cache_pmem(addr, size);
}
static inline bool __arch_has_wmb_pmem(void)