Re: [PATCH] asm-generic magic

george anzinger (george@mvista.com)
Wed, 07 May 2003 02:35:42 -0700


David S. Miller wrote:
> From: george anzinger <george@mvista.com>
> Date: Tue, 06 May 2003 13:15:05 -0700
>
> David S. Miller wrote:
> > This is not at all how this stuff is supposed to work.
>
> Um, where might one learn how it is _supposed_ to work?
>
> By looking at existing uses.
>
> Some files provide partial APIs, other files are "configured'
> by the asm-ARCH/foo.h header before being included.
>
Yes, I am aware of existing use. Sometimes the asm file just includes
the generic with no additional content. It is these that go away.
This also means that an arch need not supply the asm version UNTIL it
has one that does it better. This might be useful if one wanted to
supply a u64 = u64 * u32 mpy, for example. This can be done in C, but
is rather costly. An arch could supply the asm version at a later
time, but for the short haul, the generic gets them on the air.

If the arch wanted to supply only some of the content, the configure
option as is used with some today, is still available. CURRENT USAGE
IS NOT AFFECTED.

As to "_supposed_ to work", I rather though we were making this up as
we went along, as long as we don't change existing usage, and even,
sometimes, that rule is not honored :)
>

-- 
George Anzinger   george@mvista.com
High-res-timers:  http://sourceforge.net/projects/high-res-timers/
Preemption patch: http://www.kernel.org/pub/linux/kernel/people/rml

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