diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2017-10-16 00:13:41 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-11-22 12:24:46 +1100 |
commit | f3f1dfd600ff82b18b7ea73d80eb27f476a6aa97 (patch) | |
tree | 5ece696e86f5b89c26a3517aebb8ff5a8bf7106d /include | |
parent | 62b49c42107efd973edffc75f4f874c5226cd20a (diff) | |
download | linux-f3f1dfd600ff82b18b7ea73d80eb27f476a6aa97.tar.gz linux-f3f1dfd600ff82b18b7ea73d80eb27f476a6aa97.tar.bz2 linux-f3f1dfd600ff82b18b7ea73d80eb27f476a6aa97.zip |
powerpc/perf/imc: Use cpu_to_node() not topology_physical_package_id()
init_imc_pmu() uses topology_physical_package_id() to detect the
node id of the processor it is on to get local memory, but that's
wrong, and can lead to crashes. Fix it to use cpu_to_node().
Fixes: 885dcd709ba9 ("powerpc/perf: Add nest IMC PMU support")
Cc: stable@vger.kernel.org # v4.14+
Reported-By: Rob Lippert <rlippert@google.com>
Tested-By: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions