[PATCH 6/9] powerpc/64: Clean up ppc64_caches using a struct per cache

2017-01-08 Thread Benjamin Herrenschmidt
We have two set of identical struct members for the I and D sides and mostly identical bunches of code to parse the device-tree to populate them. Instead make a ppc_cache_info structure with one copy for I and one for D Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/cache.h

[PATCH 6/9] powerpc/64: Clean up ppc64_caches using a struct per cache

2017-01-03 Thread Benjamin Herrenschmidt
We have two set of identical struct members for the I and D sides and mostly identical bunches of code to parse the device-tree to populate them. Instead make a ppc_cache_info structure with one copy for I and one for D Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/cache.h