Re: [PATCH 2/2] x86: Move PCI IO ECS code to x86/pci

From: Ingo Molnar
Date: Wed Jun 18 2008 - 03:52:10 EST



* Robert Richter <robert.richter@xxxxxxx> wrote:

> Ok, so what about shared code? Keep all this in separate files:
> amd_bus.c, (amd_bus_32.c), amd_bus_64.c, (amd_bus.h)?
>
> Is the strategy to avoid #ifdefs and instead use the flags in
> Makefiles? My intention was to coalesce the files. Maybe I was wrong
> here.

What you did is fine - first step is to move the variants as close to
each other as possible, in an as obvious and mechanic step as possible.

If anything breaks due to your patches then they were probably too
large, but lets be optimistic and try your current splitup first :)

Then we can start eliminating any leftover #ifdefs, step by step. Please
send very, very small patches for that (put them into a git tree on
kernel.org if there's more than say a dozen of them), we'll test them,
and if the changes break anything it's all bisectable to an individual
change.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/