Re: [PATCH] change name of rep_nop

David S. Miller (davem@redhat.com)
Mon, 08 Oct 2001 16:30:54 -0700 (PDT)


From: Dave Jones <davej@suse.de>
Date: Tue, 9 Oct 2001 01:24:18 +0200 (CEST)

How do you propose to do this without turning setup.c and friends
into a #ifdef nightmare ? setup_intel.c, setup_amd.c etc ??

It is possible to contain the mess in header files. Other
architectures have done this...

You can either macro inline the cpu tests and/or use function
pointers. The munging in the header files nops it out into
whatever CONFIG_CPUTYPE was chosen if you didn't ask for the
generic build.

Franks a lot,
David S. Miller
davem@redhat.com
-
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/