From: Thomas Gleixner <tglx@linutronix.de>
To: Ani Sinha <ani@anisinha.ca>, linux-kernel@vger.kernel.org
Cc: anirban.sinha@nokia.com, Ani Sinha <ani@anisinha.ca>,
Ingo Molnar <mingo@redhat.com>,
Peter Zijlstra <peterz@infradead.org>,
Juri Lelli <juri.lelli@redhat.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Steven Rostedt <rostedt@goodmis.org>,
Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>,
Daniel Bristot de Oliveira <bristot@redhat.com>
Subject: Re: [PATCH v1] Print a log when the sched clock is marked unstable
Date: Wed, 07 Jul 2021 12:12:46 +0200 [thread overview]
Message-ID: <8735sqqvoh.ffs@nanos.tec.linutronix.de> (raw)
In-Reply-To: <20210627064911.2179786-1-ani@anisinha.ca>
Ani,
On Sun, Jun 27 2021 at 12:19, Ani Sinha wrote:
I asked you to read Documentation/process carefully and I told you:
Also your subject line want's a proper prefix.
Your patch is missing a prefix again. Hint:
git log kernel/sched/clock.c
> In other parts of the kernel when the sched clock transitions from
> stable to unstable and vice versa, a kernel info log is printed. When
> the sched clock is marked explicitly as unstable, we should print an
> information log as well. This patch addresses this. It is useful in
git grep 'This patch' Documentation/process/
Also please avoid the 'we' wording. 'We should print' does not make
sense if you really think about it.
> cases where for example, we want to understand why a certain feature
> like NOHZ, which depends on a stable sched clock, is not available.
>
> Signed-off-by: Ani Sinha <ani@anisinha.ca>
> ---
> kernel/sched/clock.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> See also thread
> https://lkml.org/lkml/2021/6/20/32
>
> diff --git a/kernel/sched/clock.c b/kernel/sched/clock.c
> index c2b2859ddd82..5a403b2c9b3f 100644
> --- a/kernel/sched/clock.c
> +++ b/kernel/sched/clock.c
> @@ -192,8 +192,10 @@ void clear_sched_clock_stable(void)
>
> smp_mb(); /* matches sched_clock_init_late() */
>
> - if (static_key_count(&sched_clock_running.key) == 2)
> + if (static_key_count(&sched_clock_running.key) == 2) {
> + pr_info("sched_clock: Marking unstable.\n");
> __clear_sched_clock_stable();
Why isn't that in __clear_sched_clock_stable() ?
Thanks,
tglx
next prev parent reply other threads:[~2021-07-07 10:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-27 6:49 [PATCH v1] Print a log when the sched clock is marked unstable Ani Sinha
2021-07-03 17:29 ` Ani Sinha
2021-07-07 10:12 ` Thomas Gleixner [this message]
2021-07-07 11:05 ` Ani Sinha
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=8735sqqvoh.ffs@nanos.tec.linutronix.de \
--to=tglx@linutronix.de \
--cc=ani@anisinha.ca \
--cc=anirban.sinha@nokia.com \
--cc=bristot@redhat.com \
--cc=bsegall@google.com \
--cc=dietmar.eggemann@arm.com \
--cc=juri.lelli@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=vincent.guittot@linaro.org \
/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