From: Josh Poimboeuf <jpoimboe@redhat.com>
To: Ingo Molnar <mingo@redhat.com>, Peter Zijlstra <peterz@infradead.org>
Cc: linux-kernel@vger.kernel.org,
Mel Gorman <mgorman@techsingularity.net>,
Matt Fleming <matt@codeblueprint.co.uk>,
Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Subject: Re: [PATCH 3/3] sched/debug: remove unnecessary CONFIG_SCHEDSTATS checks
Date: Fri, 3 Jun 2016 16:13:34 -0500 [thread overview]
Message-ID: <20160603211334.najj3annqaldw5nd@treble> (raw)
In-Reply-To: <0b9c2f8bfb19406740ffb76c3269a13a7db43314.1464986080.git.jpoimboe@redhat.com>
On Fri, Jun 03, 2016 at 03:44:41PM -0500, Josh Poimboeuf wrote:
> --- a/kernel/sched/fair.c
> +++ b/kernel/sched/fair.c
> @@ -3447,7 +3447,7 @@ set_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
>
> update_stats_curr_start(cfs_rq, se);
> cfs_rq->curr = se;
> -#ifdef CONFIG_SCHEDSTATS
> +
> /*
> * Track our maximum slice length, if the CPU's load is at
> * least twice that of our own weight (i.e. dont track it
> @@ -3457,7 +3457,7 @@ set_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
> se->statistics.slice_max = max(se->statistics.slice_max,
> se->sum_exec_runtime - se->prev_sum_exec_runtime);
> }
> -#endif
> +
> se->prev_sum_exec_runtime = se->sum_exec_runtime;
Oops. This part fails to build without CONFIG_SCHEDSTATS. This hunk
can just be removed from the patch.
--
Josh
next prev parent reply other threads:[~2016-06-03 21:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-03 20:44 [PATCH 0/3] sched/debug: schedstats bug fix and cleanups Josh Poimboeuf
2016-06-03 20:44 ` [PATCH 1/3] sched/debug: fix /proc/sched_debug regression Josh Poimboeuf
2016-06-03 20:44 ` [PATCH 2/3] sched/debug: always show nr_migrations Josh Poimboeuf
2016-06-03 20:44 ` [PATCH 3/3] sched/debug: remove unnecessary CONFIG_SCHEDSTATS checks Josh Poimboeuf
2016-06-03 21:13 ` Josh Poimboeuf [this message]
2016-06-03 21:40 ` [PATCH 0/3] sched/debug: schedstats bug fix and cleanups Josh Poimboeuf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160603211334.najj3annqaldw5nd@treble \
--to=jpoimboe@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matt@codeblueprint.co.uk \
--cc=mgorman@techsingularity.net \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=srikar@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®