diff options
| author | Paul Gortmaker <[email protected]> | 2021-12-06 14:59:50 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2022-04-10 10:23:34 +0000 |
| commit | 40e97e42961f8c6cc7bd5fe67cc18417e02d78f1 (patch) | |
| tree | 4ba3c93934475c5c40ffa8c80e1edb343df6611b /drivers/acpi/cppc_acpi.c | |
| parent | timers: Fix warning condition in __run_timers() (diff) | |
| download | kernel-40e97e42961f8c6cc7bd5fe67cc18417e02d78f1.tar.gz kernel-40e97e42961f8c6cc7bd5fe67cc18417e02d78f1.zip | |
tick/nohz: Use WARN_ON_ONCE() to prevent console saturation
While running some testing on code that happened to allow the variable
tick_nohz_full_running to get set but with no "possible" NOHZ cores to
back up that setting, this warning triggered:
if (unlikely(tick_do_timer_cpu == TICK_DO_TIMER_NONE))
WARN_ON(tick_nohz_full_running);
The console was overwhemled with an endless stream of one WARN per tick
per core and there was no way to even see what was going on w/o using a
serial console to capture it and then trace it back to this.
Change it to WARN_ON_ONCE().
Fixes: 08ae95f4fd3b ("nohz_full: Allow the boot CPU to be nohz_full")
Signed-off-by: Paul Gortmaker <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions
