diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2017-10-19 18:13:54 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-11-13 08:00:30 +1100 |
commit | 32ce3862af3c42a3890e99846a8d1ad8871a49f9 (patch) | |
tree | 1c6c9140569f4478c4b5a058c98579ef55dbd24e /arch/powerpc/Kconfig | |
parent | 1b2c2b12386f9bb009a2249eca00e01a9d76d7c1 (diff) | |
download | op-kernel-dev-32ce3862af3c42a3890e99846a8d1ad8871a49f9.zip op-kernel-dev-32ce3862af3c42a3890e99846a8d1ad8871a49f9.tar.gz |
powerpc/lib: Implement PMEM API
Implement the architecture specific cache maintence functions that make
up the "PMEM API". Currently the writeback and invalidate functions
are the same since the function of the DCBST (data cache block store)
instruction is typically interpreted as "writeback to the point of
coherency" rather than to memory. As a result implementing the API
requires a full cache flush rather than just a cache write back. This
will probably change in the not-too-distant future.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/Kconfig')
-rw-r--r-- | arch/powerpc/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index b8b75b4..c844dbc 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -138,6 +138,7 @@ config PPC select ARCH_HAS_ELF_RANDOMIZE select ARCH_HAS_FORTIFY_SOURCE select ARCH_HAS_GCOV_PROFILE_ALL + select ARCH_HAS_PMEM_API if PPC64 select ARCH_HAS_SCALED_CPUTIME if VIRT_CPU_ACCOUNTING_NATIVE select ARCH_HAS_SG_CHAIN select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST |