cpuacct: Convert BUG_ON() to WARN_ON_ONCE()
authorAndrey Ryabinin <arbn@yandex-team.com>
Mon, 15 Nov 2021 16:46:05 +0000 (19:46 +0300)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 23 Nov 2021 08:55:22 +0000 (09:55 +0100)
commitc7ccbf4b6174e32c130892570db06d0f496cfef0
tree92fb3ed324c0b01c187392c70c98ed4e0f36a66e
parent9731698ecb9c851f353ce2496292ff9fcea39dff
cpuacct: Convert BUG_ON() to WARN_ON_ONCE()

Replace fatal BUG_ON() with more safe WARN_ON_ONCE() in cpuacct_cpuusage_read().

Signed-off-by: Andrey Ryabinin <arbn@yandex-team.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Daniel Jordan <daniel.m.jordan@oracle.com>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20211115164607.23784-2-arbn@yandex-team.com
kernel/sched/cpuacct.c