]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s/powernv: Ratelimit harmless HMI error printing
authorNicholas Piggin <npiggin@gmail.com>
Sat, 28 Nov 2020 07:07:25 +0000 (17:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:23 +0000 (01:01 +1100)
commitea214a2f480d220b802609aa14aca0421388a23e
tree9cf11ddad8ae9ad94c610f0042808f7b6f1218a7
parentc0aa752855703351cc531d71aaa26b1951a582a3
powerpc/64s/powernv: Ratelimit harmless HMI error printing

Harmless HMI errors can be triggered by guests in some cases, and don't
contain much useful information anyway. Ratelimit these to avoid
flooding the console/logs.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Use dedicated ratelimit state, not printk_ratelimit()]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201128070728.825934-6-npiggin@gmail.com
arch/powerpc/platforms/powernv/opal-hmi.c