]> git.baikalelectronics.ru Git - 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)
commit6b69525c54418cab0ab890cb46e1680623d97ef0
tree1c6c9140569f4478c4b5a058c98579ef55dbd24e
parentcfb1c8e9b48f3293ee57a386d8ecc7b08ad8fe85
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]