]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pmem: remove layer when calling arch_has_wmb_pmem()
authorRoss Zwisler <ross.zwisler@linux.intel.com>
Tue, 18 Aug 2015 19:55:37 +0000 (13:55 -0600)
committerDan Duval <dan.duval@oracle.com>
Wed, 7 Dec 2016 17:19:23 +0000 (12:19 -0500)
commit7c1fd626fa3caaedde2b87a73b1d2a6662818137
tree696ad6f96f3d8d407141cda44e07f57fd2492fd6
parent3394e44cb998e26a2edbfdbada55f0c38d4f92cc
pmem: remove layer when calling arch_has_wmb_pmem()

Orabug: 22913653

Prior to this change arch_has_wmb_pmem() was only called by
arch_has_pmem_api().  Both arch_has_wmb_pmem() and arch_has_pmem_api()
checked to make sure that CONFIG_ARCH_HAS_PMEM_API was enabled.

Instead, remove the old arch_has_wmb_pmem() wrapper to be rid of one
extra layer of indirection and the redundant CONFIG_ARCH_HAS_PMEM_API
check. Rename __arch_has_wmb_pmem() to arch_has_wmb_pmem() since we no
longer have a wrapper, and just have arch_has_pmem_api() call the
architecture specific arch_has_wmb_pmem() directly.

Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit 18279b467a9d89afe44afbc19d768e834dbf4545)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
arch/x86/include/asm/pmem.h
include/linux/pmem.h