/* Checks @sample against @expires to see if any field of @sample has expired. Returns true if any field of the former is greater than the corresponding field of the latter if the latter field is set. Otherwise returns false.  */
static int task_cputime_expired(const struct task_cputime *sample, const struct task_cputime *expires)
/* Checks @sample against @expires to see if any field of @sample has expired. Returns true if any field of the former is greater than the corresponding field of the latter if the latter field is set. Otherwise returns false.  */
static int task_cputime_expired(const struct task_cputime *sample, const struct task_cputime *expires)
{
	if (!cputime_eq(expires->utime, cputime_zero) &&
	    cputime_ge(sample->utime, expires->utime))
		return 1;
	if (!cputime_eq(expires->stime, cputime_zero) &&
	    cputime_ge(cputime_add(sample->utime, sample->stime),
		       expires->stime))
		return 1;
	if (expires->sum_exec_runtime != 0 &&
	    sample->sum_exec_runtime >= expires->sum_exec_runtime)
		return 1;
	return 0;
}