]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc: Warn about use of smt_snooze_delay
authorJoel Stanley <joel@jms.id.au>
Wed, 2 Sep 2020 00:00:11 +0000 (09:30 +0930)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:08:51 +0000 (11:08 +0100)
commitb035bb9573ff8d3ee89ee6019a511f2aefbbee06
treeb19093ac20772b9738f7b2a12b0a3b61a4f3499a
parent94e8f0bbc475228c93d28b2e0f7e37303db80ffe
powerpc: Warn about use of smt_snooze_delay

commit a02f6d42357acf6e5de6ffc728e6e77faf3ad217 upstream.

It's not done anything for a long time. Save the percpu variable, and
emit a warning to remind users to not expect it to do anything.

This uses pr_warn_once instead of pr_warn_ratelimit as testing
'ppc64_cpu --smt=off' on a 24 core / 4 SMT system showed the warning
to be noisy, as the online/offline loop is slow.

Fixes: 3fa8cad82b94 ("powerpc/pseries/cpuidle: smt-snooze-delay cleanup.")
Cc: stable@vger.kernel.org # v3.14
Signed-off-by: Joel Stanley <joel@jms.id.au>
Acked-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200902000012.3440389-1-joel@jms.id.au
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/sysfs.c