Re: misc_cache_init

Russell King (rmk@arm.linux.org.uk)
Tue, 4 Dec 2001 11:04:35 +0000


On Mon, Dec 03, 2001 at 01:36:04PM +0100, Frank Cornelis wrote:
> I looked at some past kernel mailings and it seems like some archs need
> specific caches and others don't. In order to provide these
> functionalities I suggest to add somewhere to init/main.c
> misc_cache_init();
> and provide an initial
> #define misc_cache_init() do {} while (0)
> for every architecture.
> Anyone agrees on this?

We already have this under a slightly different name (Alan didn't merge it
into Linus' kernel though from what I remember): pgtable_cache_init.

This was used in -ac to initialise the ARM PTE slab, as well as the x86
PAE slabs immediately after the call to kmem_cache_sizes_init.

--
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/