diff options
author | 2020-05-07 11:10:39 +0800 | |
---|---|---|
committer | 2020-05-19 20:34:13 +0200 | |
commit | 12aa2587388de6697fd2e585ae6a90f70249540b (patch) | |
tree | 88a90b936c5f995ee9938cde7c6f875769f4e567 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | sched/fair: Optimize enqueue_task_fair() (diff) | |
download | wireguard-linux-12aa2587388de6697fd2e585ae6a90f70249540b.tar.xz wireguard-linux-12aa2587388de6697fd2e585ae6a90f70249540b.zip |
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 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions