]> asedeno.scripts.mit.edu Git - linux.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)
commit7fd6641de28fe9b5bce0c38d2adee0a72a72619e
treec4637ba60b84620bc06f5372c8decf05208d2b68
parentfb5924fddf9ee31db04da7ad4e8c3434a387101b
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: 9d5171a8f248 ("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