Linus Torvalds wrote: > > It's much better to have specific CONFIG_xxx options that are set > automatically depending on the CPU type (see, for example, the way the x86 > stuff sets "CONFIG_X86_WP_WORKS_OK" or whatever we called those options). > That makes for much more readable code, and makes the configure scripts > work correctly on dependencies. > > So I'd suggest a CONFIG_L1_CACHELINE define for the size of the L1 > cacheline instead of having CPU defines and then checking those. > > Linus CONFIG_X86_WP_WORKS_OK only takes boolean values so I tried a compromise. I now use the config.h way, don't add any new CONFIG_xx options but still test cpu type in cache.h. It should work with i386 as well but I don't know how the cache lines vary across the many versions. Yours, Mike