diff options
author | Ross Zwisler <ross.zwisler@linux.intel.com> | 2016-01-06 11:36:03 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2016-01-07 20:19:49 +1100 |
commit | 9b6671601fe49225cca58e58e0ee0c1f3841581a (patch) | |
tree | 28d4aea6f10eef3e98d085e96392cc0f7c15dc6c | |
parent | cc4b49366fae4a14b8c56e7dbb8120fef47074ce (diff) | |
download | linux-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.h | 2 |
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) |