[BUG] intel_idle: build failure on Linux 5.10-rc6

From: Rui Salvaterra
Date: Thu Dec 03 2020 - 04:24:28 EST


Hi, Peter,

I'm sorry to bother you, but commit
6e1d2bc675bd57640f5658a4a657ae488db4c204 ("intel_idle: Fix
intel_idle() vs tracing") broke my build, when CONFIG_ACPI_PROCESSOR
is disabled (possibly because it selects CONFIG_ACPI_PROCESSOR_IDLE):

drivers/idle/intel_idle.c: In function ‘intel_idle_init_cstates_icpu’:
drivers/idle/intel_idle.c:1510:7: error: implicit declaration of
function ‘intel_idle_state_needs_timer_stop’
[-Werror=implicit-function-declaration]
1510 | if (intel_idle_state_needs_timer_stop(&drv->states[drv->state_count]))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reverting the aforementioned commit fixes it. Config attached. Please
let me know if you need anything else!

Thanks,
Rui

Attachment: .config
Description: Binary data