Re: [RFC PATCH] x86: perf: Clean up perf_event cpu code

From: Peter Zijlstra
Date: Tue Aug 30 2011 - 07:35:31 EST


On Tue, 2011-08-30 at 08:21 -0300, Kevin Winchester wrote:
>
> This is the first time I've attempted a patch this large. Should I break it up
> into smaller pieces?

Only if it makes sens, intermediate stages should still compile. I could
imagine you creating the header file and moving stuff in there one thing
at a time while keeping the whole thing compiling. Eventually resulting
in the state where the #include hackery is superfluous and can be
removed.

If its worth spending a lot of time making that happen is another thing.

> Or does that requirement not really apply since it's just
> a cleanup patch?

Cleanup isn't the criteria. The individual steps have to make sense.

Take for instance the uprobe patch set as an example of how not to split
up things. The individual patches don't really stand on their own and
you're constantly forced to switch back and forth while reviewing, a
total pain.

> Also, it is based on Linus' tree, should I base it on tip instead?

Yes please. I don't think they differ a lot but tip is where it'll end
up being applied to, so it helps if it does indeed apply ;-)

Otherwise looks good, thanks a bunch!
--
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/