Re: [PATCH 4/5] sched/debug: remove several CONFIG_SCHEDSTATS guards

2016-06-27 Thread Josh Poimboeuf
On Mon, Jun 27, 2016 at 06:21:11PM +0200, Peter Zijlstra wrote: > On Fri, Jun 17, 2016 at 12:43:26PM -0500, Josh Poimboeuf wrote: > > index 017a4f5..0aee5dd 100644 > > --- a/kernel/sched/core.c > > +++ b/kernel/sched/core.c > > @@ -1626,10 +1626,15 @@ static inline int

Re: [PATCH 4/5] sched/debug: remove several CONFIG_SCHEDSTATS guards

2016-06-27 Thread Josh Poimboeuf
On Mon, Jun 27, 2016 at 06:21:11PM +0200, Peter Zijlstra wrote: > On Fri, Jun 17, 2016 at 12:43:26PM -0500, Josh Poimboeuf wrote: > > index 017a4f5..0aee5dd 100644 > > --- a/kernel/sched/core.c > > +++ b/kernel/sched/core.c > > @@ -1626,10 +1626,15 @@ static inline int

Re: [PATCH 4/5] sched/debug: remove several CONFIG_SCHEDSTATS guards

2016-06-27 Thread Peter Zijlstra
On Fri, Jun 17, 2016 at 12:43:26PM -0500, Josh Poimboeuf wrote: > index 017a4f5..0aee5dd 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -1626,10 +1626,15 @@ static inline int __set_cpus_allowed_ptr(struct > task_struct *p, > static void > ttwu_stat(struct task_struct *p,

Re: [PATCH 4/5] sched/debug: remove several CONFIG_SCHEDSTATS guards

2016-06-27 Thread Peter Zijlstra
On Fri, Jun 17, 2016 at 12:43:26PM -0500, Josh Poimboeuf wrote: > index 017a4f5..0aee5dd 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -1626,10 +1626,15 @@ static inline int __set_cpus_allowed_ptr(struct > task_struct *p, > static void > ttwu_stat(struct task_struct *p,

[PATCH 4/5] sched/debug: remove several CONFIG_SCHEDSTATS guards

2016-06-17 Thread Josh Poimboeuf
Clean up the sched code by removing several of the CONFIG_SCHEDSTATS guards, using schedstat_*() macros where needed. Code size: !CONFIG_SCHEDSTATS defconfig: text data bss dechex filename 10209818 4368184 1105920 15683922 ef5152

[PATCH 4/5] sched/debug: remove several CONFIG_SCHEDSTATS guards

2016-06-17 Thread Josh Poimboeuf
Clean up the sched code by removing several of the CONFIG_SCHEDSTATS guards, using schedstat_*() macros where needed. Code size: !CONFIG_SCHEDSTATS defconfig: text data bss dechex filename 10209818 4368184 1105920 15683922 ef5152