Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1323451
| From | Eric Dumazet <eric.dumazet@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 4/4] sched,time: only call account_{user,sys,guest,idle}_time once a jiffy |
| Date | 2016-02-01 21:10 +0100 |
| Message-ID | <qXsXo-85A-7@gated-at.bofh.it> (permalink) |
| References | <qXskG-7wZ-5@gated-at.bofh.it> <qXskG-7wZ-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, 2016-02-01 at 14:21 -0500, riel@redhat.com wrote:
> From: Rik van Riel <riel@redhat.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 ?
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 4/4] sched,time: only call account_{user,sys,guest,idle}_time once a jiffy riel@redhat.com - 2016-02-01 20:30 +0100
Re: [PATCH 4/4] sched,time: only call account_{user,sys,guest,idle}_time once a jiffy Rik van Riel <riel@redhat.com> - 2016-02-01 21:10 +0100
Re: [PATCH 4/4] sched,time: only call account_{user,sys,guest,idle}_time once a jiffy Eric Dumazet <eric.dumazet@gmail.com> - 2016-02-01 21:10 +0100
csiph-web