aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMuchun Song2020-05-07 11:10:39 +0800
committerPeter Zijlstra2020-05-19 20:34:13 +0200
commit12aa2587388de6697fd2e585ae6a90f70249540b (patch)
tree88a90b936c5f995ee9938cde7c6f875769f4e567 /arch
parent7d148be69e3a0eaa9d029a3c51b545e322116a99 (diff)
sched/cpuacct: Use __this_cpu_add() instead of this_cpu_ptr()
The cpuacct_charge() and cpuacct_account_field() are called with rq->lock held, and this means preemption(and IRQs) are indeed disabled, so it is safe to use __this_cpu_*() to allow for better code-generation. Signed-off-by: Muchun Song <songmuchun@bytedance.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20200507031039.32615-1-songmuchun@bytedance.com
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions