lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1454356843.7627.187.camel@edumazet-glaptop2.roam.corp.google.com>
Date:	Mon, 01 Feb 2016 12:00:43 -0800
From:	Eric Dumazet <eric.dumazet@...il.com>
To:	riel@...hat.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 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 ?


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ