]> git.baikalelectronics.ru Git - kernel.git/commit
sched/cputime: Use this_cpu_add() in task_group_account_field()
authorChristoph Lameter <cl@gentwo.org>
Wed, 7 Aug 2013 15:38:24 +0000 (15:38 +0000)
committerIngo Molnar <mingo@kernel.org>
Fri, 16 Aug 2013 15:44:29 +0000 (17:44 +0200)
commit24c04e3f929e50d2a8a4401d68283e71b83f02c7
tree6285945a10b8bf718d27fecd7d4bc33e21a0a861
parent10a7a97418dba5ab6700ce81d01bea46c5e0d36e
sched/cputime: Use this_cpu_add() in task_group_account_field()

Use of a this_cpu() operation reduces the number of instructions used
for accounting (account_user_time()) and frees up some registers. This is in
the scheduler tick hotpath.

Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/00000140596dd165-338ff7f5-893b-4fec-b251-aaac5557239e-000000@email.amazonses.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/cputime.c