summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorPratik R. Sampat <psampat@linux.ibm.com>2021-07-28 17:35:00 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-09-22 11:48:09 +0200
commitcca7b5d236a4f7fc1937dc403087f5892d64a5d6 (patch)
treef1464e63f284899f8d905b1b783e95ed709a65ca /kernel
parent124e801e558f479d37784738904b568a05b1ed96 (diff)
cpufreq: powernv: Fix init_chip_info initialization in numa=off
commit f34ee9cb2c5ac5af426fee6fa4591a34d187e696 upstream. In the numa=off kernel command-line configuration init_chip_info() loops around the number of chips and attempts to copy the cpumask of that node which is NULL for all iterations after the first chip. Hence, store the cpu mask for each chip instead of derving cpumask from node while populating the "chips" struct array and copy that to the chips[i].mask Fixes: 053819e0bf84 ("cpufreq: powernv: Handle throttling due to Pmax capping at chip level") Cc: stable@vger.kernel.org # v4.3+ Reported-by: Shirisha Ganta <shirisha.ganta1@ibm.com> Signed-off-by: Pratik R. Sampat <psampat@linux.ibm.com> Reviewed-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com> [mpe: Rename goto label to out_free_chip_cpu_mask] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210728120500.87549-2-psampat@linux.ibm.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions