[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190822134920.GL22020@lenoir>
Date: Thu, 22 Aug 2019 15:49:21 +0200
From: Frederic Weisbecker <frederic@...nel.org>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: LKML <linux-kernel@...r.kernel.org>,
Oleg Nesterov <oleg@...hat.com>,
Ingo Molnar <mingo@...nel.org>,
Peter Zijlstra <peterz@...radead.org>,
John Stultz <john.stultz@...aro.org>,
Anna-Maria Behnsen <anna-maria@...utronix.de>,
Christoph Hellwig <hch@....de>
Subject: Re: [patch V2 08/38] posix-cpu-timers: Consolidate thread group
sample code
On Wed, Aug 21, 2019 at 09:08:55PM +0200, Thomas Gleixner wrote:
> cpu_clock_sample_group() and cpu_timer_sample_group() are almost the
> same. Before the rename one called thread_group_cputimer() and the other
> thread_group_cputime(). Really intuitive function names.
>
> Consolidate the functions and also avoid the thread traversal when
> the thread group's accounting is already active.
>
> Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
> ---
[snip]
> @@ -755,7 +736,7 @@ static void posix_cpu_timer_get(struct k
> timer->it.cpu.expires = 0;
> return;
> } else {
> - cpu_timer_sample_group(timer->it_clock, p, &now);
> + cpu_clock_sample_group(timer->it_clock, p, &now, false);
We might want to warn here if !cputimer->running.
Reviewed-by: Frederic Weisbecker <frederic@...nel.org>
Powered by blists - more mailing lists