Re: Linux-2.5.16

Linus Torvalds (torvalds@transmeta.com)
Sun, 19 May 2002 17:39:42 -0700 (PDT)


On Mon, 20 May 2002, Roman Zippel wrote:
>
> Two questions about asm-generic/tlb.h:
> - freed is never incremented, callers of tlb_remove_page have to do the
> rss update themselves?

No, that's just a missed thing (for a while I thought I could use "nr" for
"freed", so I changed the code and forgot to add back the free'd).

> - will a non smp version later be added again?

Not likely, at least not in the form it was before of having two
completely different paths.

But I was thinking of doing a one-source thing that the compiler can
statically optimize, with something like

#ifdef CONFIG_SMP
#define fast_case(tlb) ((tlb)->nr == ~0UL)
#else
#define fast_case(tlb) (1)
#endif

which allows us to have one set of sources for both UP and SMP, but the UP
case gets optimized by the compiler.

Do you want to do the freed and the above and test it?

Linus

-
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/