Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74fcd524 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Ingo Molnar
Browse files

account_steal_time: kill the unneeded account_group_system_time()



Impact: remove unnecessary accounting call

I don't actually understand account_steal_time() and I failed to find the
commit which added account_group_system_time(), but this looks bogus.
In any case rq->idle must be single-threaded, so it can't have ->totals.

Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent ad133ba3
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -4202,7 +4202,6 @@ void account_steal_time(struct task_struct *p, cputime_t steal)

	if (p == rq->idle) {
		p->stime = cputime_add(p->stime, steal);
		account_group_system_time(p, steal);
		if (atomic_read(&rq->nr_iowait) > 0)
			cpustat->iowait = cputime64_add(cpustat->iowait, tmp);
		else