[RFC] powerpc: Merge 32/64 cacheflush code

Kumar Gala galak at kernel.crashing.org
Tue Dec 20 02:30:37 EST 2005


On Dec 18, 2005, at 11:44 PM, David Gibson wrote:

> Paulus et al, I think the patch below is roughly the right way to go,
> but it needs much more review and testing (at present it's been
> cursorily tested on ppc64 pSeries only).
>
> This patch merges the cache flushing code for 32 and 64 bit powerpc
> machines.  This means the ppc64_caches mechanism for determining
> correct cache sizes at runtime is ported to 32-bit, and is thus
> renamed as 'powerpc_caches'.  The merged cache flushing functions go
> in new file arch/powerpc/kernel/cache.S.

Why dont we just use the cache line information in the cputable?  Why  
the introduction of this new powerpc_caches structure?

- kumar



More information about the Linuxppc64-dev mailing list