diff options
author | Muchun Song <[email protected]> | 2020-05-07 11:10:39 +0800 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2020-05-19 20:34:13 +0200 |
commit | 12aa2587388de6697fd2e585ae6a90f70249540b (patch) | |
tree | 88a90b936c5f995ee9938cde7c6f875769f4e567 /scripts/gcc-plugins/gcc-common.h | |
parent | 7d148be69e3a0eaa9d029a3c51b545e322116a99 (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 <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions