aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNeilBrown <[email protected]>2017-12-19 10:01:47 +1100
committerGreg Kroah-Hartman <[email protected]>2018-01-08 16:03:44 +0100
commitdbeccabf5294e80f7cc9ee566746c42211bed736 (patch)
tree1485413f0661ce4cac9561c98f5156396cbe538b /tools/perf/scripts/python
parent213b14b1fa55790f55b180ed5121b07f037c7ddd (diff)
staging: lustre: disable preempt while sampling processor id.
Calling smp_processor_id() without disabling preemption triggers a warning (if CONFIG_DEBUG_PREEMPT). I think the result of cfs_cpt_current() is only used as a hint for load balancing, rather than as a precise and stable indicator of the current CPU. So it doesn't need to be called with preemption disabled. So disable preemption inside cfs_cpt_current() to silence the warning. Signed-off-by: NeilBrown <[email protected]> Reviewed-by: Andreas Dilger <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions