Re: [PATCH v2 0/7] sched: Split cpuacct

From: Ingo Molnar
Date: Wed Apr 10 2013 - 09:10:59 EST



* Ingo Molnar <mingo@xxxxxxxxxx> wrote:

>
> * Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> > On Fri, 2013-03-29 at 14:36 +0800, Li Zefan wrote:
> >
> > > - This patchset splits cpuacct out of core scheduler code.
> > > - Plus two small optimizations.
> > >
> >
> > > ---
> > > kernel/sched/Makefile | 1 +
> > > kernel/sched/core.c | 228 +----------------------------------------------
> > > kernel/sched/cpuacct.c | 303 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > > kernel/sched/cpuacct.h | 22 +++++
> > > kernel/sched/cputime.c | 18 +---
> > > kernel/sched/sched.h | 48 +---------
> > > 6 files changed, 330 insertions(+), 290 deletions(-)
> >
> > Looks good from a quick glance, thanks for doing this.
> >
> > Acked-by: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
>
> Looks good to me too, so I added it to tip:sched/core.
>
> The only breakage it cased was on UML:
>
> home/mingo/tip/kernel/sched/cpuacct.c:94:2: error: implicit declaration of
> function 'ERR_PTR' [-Werror=implicit-function-declaration]
>
> I suspect it's a previously hidden header file dependency assumption and the patch
> below will fix it.

diff --git a/kernel/sched/cpuacct.c b/kernel/sched/cpuacct.c
index ef57ab6..dbb7e2c 100644
--- a/kernel/sched/cpuacct.c
+++ b/kernel/sched/cpuacct.c
@@ -6,6 +6,7 @@
#include <linux/seq_file.h>
#include <linux/rcupdate.h>
#include <linux/kernel_stat.h>
+#include <linux/err.h>

#include "sched.h"

--
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/