diff options
| author | NeilBrown <[email protected]> | 2017-12-19 10:01:47 +1100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-01-08 16:03:44 +0100 |
| commit | dbeccabf5294e80f7cc9ee566746c42211bed736 (patch) | |
| tree | 1485413f0661ce4cac9561c98f5156396cbe538b /tools/perf/scripts/python/stackcollapse.py | |
| parent | 213b14b1fa55790f55b180ed5121b07f037c7ddd (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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions