Re: sparc64 pgalloc.h pgd_quicklist question
Russell King (rmk@arm.linux.org.uk)
Fri, 24 May 2002 17:28:33 +0100
On Fri, May 24, 2002 at 09:05:26AM -0700, David S. Miller wrote:
> From: "Holzrichter, Bruce" <bruce.holzrichter@monster.com>
> Date: Fri, 24 May 2002 11:12:25 -0500
>
> Anyway, After looking at the SMP and UP configuration in pgalloc.h, could
> you simply remove the UP/SMP differentiation in the routines, as in my
> attachment? It looks to me, that the struct for pgt_quicklist is built
> correctly for UP or SMP above this? I could be wrong on this....
>
> That would waste 3/4 of every page allocated for PGDs.
>
> We use the pointers to keep track of which bits of the page
> are allocated to PGDs. So how about rewriting our code to
> use bits in page->flags instead?
See arch/arm/mm/small_page.c (2.4) or arch/arm/mach-arc/small_page.c for
a sub-page allocator using page->flags.
--
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/