]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv/memtrace: Let the arch hotunplug code flush cache
authorBalbir Singh <bsingharora@gmail.com>
Fri, 6 Apr 2018 05:24:24 +0000 (15:24 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 23 Apr 2018 23:46:56 +0000 (09:46 +1000)
commit1e9787386e749050823cf92c9e8412dae04d1fd9
treec4637ba60b84620bc06f5372c8decf05208d2b68
parent2540bda22d9c99e7f26fc56775fbddf6f3d7e677
powerpc/powernv/memtrace: Let the arch hotunplug code flush cache

Don't do this via custom code, instead now that we have support in the
arch hotplug/hotunplug code, rely on those routines to do the right
thing.

The existing flush doesn't work because it uses ppc64_caches.l1d.size
instead of ppc64_caches.l1d.line_size.

Fixes: 8d1b3b7817b4 ("powerpc/powernv: Enable removal of memory for in memory tracing")
Signed-off-by: Balbir Singh <bsingharora@gmail.com>
Reviewed-by: Rashmica Gupta <rashmica.g@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/memtrace.c