summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2017-12-19 10:01:47 +1100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-08 16:03:44 +0100
commitdbeccabf5294e80f7cc9ee566746c42211bed736 (patch)
tree1485413f0661ce4cac9561c98f5156396cbe538b /tools/perf/scripts/python
parent213b14b1fa55790f55b180ed5121b07f037c7ddd (diff)
downloadcachepc-linux-dbeccabf5294e80f7cc9ee566746c42211bed736.tar.gz
cachepc-linux-dbeccabf5294e80f7cc9ee566746c42211bed736.zip
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 <neilb@suse.com> Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions