lkml.org 
[lkml]   [2021]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] sched/clock: print a log when the sched clock is marked unstable
On Wed, Jul 07, 2021 at 04:26:59PM +0530, Ani Sinha wrote:
> When the sched clock transitions from stable to unstable and
> vice versa, a kernel log is printed. When the sched clock
> is marked explicitly as unstable, make __clear_sched_clock_stable()
> emit a warning log. It is useful for example in understanding
> why a certain feature like NOHZ that depends on availability of a
> stable sched clock, is not available.
>
> Signed-off-by: Ani Sinha <ani@anisinha.ca>
> ---
> kernel/sched/clock.c | 1 +
> 1 file changed, 1 insertion(+)
>
> Changelog:
> V1: original patch
> v2: print pr_warn from __clear_sched_clock_stable instead. Commit log
> updated with proper prefix and wording.
>
> diff --git a/kernel/sched/clock.c b/kernel/sched/clock.c
> index c2b2859ddd82..99484fec0335 100644
> --- a/kernel/sched/clock.c
> +++ b/kernel/sched/clock.c
> @@ -183,6 +183,7 @@ static void __clear_sched_clock_stable(void)
> return;
>
> tick_dep_set(TICK_DEP_BIT_CLOCK_UNSTABLE);
> + pr_warn("sched_clock: Marking unstable.\n");
> schedule_work(&sched_clock_work);
> }

I'm confused... that work has a ton of printk()s in, what is this
pr_warn() adding?

\
 
 \ /
  Last update: 2021-07-07 13:18    [W:0.046 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site