[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <56AFBB47.3090007@redhat.com>
Date: Mon, 1 Feb 2016 15:08:39 -0500
From: Rik van Riel <riel@...hat.com>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: linux-kernel@...r.kernel.org, tglx@...utronix.de,
peterz@...radead.org, fweisbec@...il.com, clark@...hat.com,
luto@...capital.net, mingo@...nel.org
Subject: Re: [PATCH 4/4] sched,time: only call
account_{user,sys,guest,idle}_time once a jiffy
On 02/01/2016 03:00 PM, Eric Dumazet wrote:
> On Mon, 2016-02-01 at 14:21 -0500, riel@...hat.com wrote:
>> From: Rik van Riel <riel@...hat.com>
>>
>
>> #ifdef CONFIG_VIRT_CPU_ACCOUNTING_GEN
>> +static bool vtime_jiffies_changed(struct task_struct *tsk, unsigned long now)
>> +{
>> + if (tsk->vtime_jiffies == jiffies)
>> + return false;
>> +
>> + tsk->vtime_jiffies = jiffies;
>> + return true;
>> +}
>
> I am guessing you intended to use 'now' instead of jiffies ?
Yes indeed. Good catch.
I have fixed this up in my local tree, and will wait for
more people's comments before sending out a v5 (tomorrow?).
--
All rights reversed
Powered by blists - more mailing lists