diff options
author | 2017-06-10 23:18:22 +0200 | |
---|---|---|
committer | 2017-06-10 18:22:55 -0400 | |
commit | a704bb5c052bbd6b77c6530a2e83cef42486e335 (patch) | |
tree | 5125144548d0dd924c45426591900587d4bf4959 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | net: mvpp2: remove mvpp2_bm_cookie_{build,pool_get} (diff) | |
download | wireguard-linux-a704bb5c052bbd6b77c6530a2e83cef42486e335.tar.xz wireguard-linux-a704bb5c052bbd6b77c6530a2e83cef42486e335.zip |
net: mvpp2: use {get, put}_cpu() instead of smp_processor_id()
smp_processor_id() should not be used in migration-enabled contexts. We
originally thought it was OK in the specific situation of this driver,
but it was wrong, and calling smp_processor_id() in a migration-enabled
context prints a big fat warning when CONFIG_DEBUG_PREEMPT=y.
Therefore, this commit replaces the smp_processor_id() in
migration-enabled contexts by the appropriate get_cpu/put_cpu sections.
Reported-by: Marc Zyngier <marc.zyngier@arm.com>
Fixes: a786841df72e ("net: mvpp2: handle register mapping and access for PPv2.2")
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions