]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
powerpc/lib: Implement PMEM API
authorOliver O'Halloran <oohall@gmail.com>
Thu, 19 Oct 2017 07:13:54 +0000 (18:13 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 12 Nov 2017 21:00:30 +0000 (08:00 +1100)
commit32ce3862af3c42a3890e99846a8d1ad8871a49f9
tree1c6c9140569f4478c4b5a058c98579ef55dbd24e
parent1b2c2b12386f9bb009a2249eca00e01a9d76d7c1
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>
arch/powerpc/Kconfig
arch/powerpc/lib/Makefile
arch/powerpc/lib/pmem.c [new file with mode: 0644]