lkml.org 
[lkml]   [2001]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH] change name of rep_nop
    From
       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/

    \
     
     \ /
      Last update: 2005-03-22 13:05    [W:3.276 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site