Re: [PATCH 4/7] cpufreq: ondemand: Include <asm/cpu_device_id.h> unconditionally

From: Zhongqiu Han

Date: Wed Nov 11 2026 - 22:30:02 EST


On 11/12/2026 7:48 AM, Pavel Popov wrote:
<asm/cpu_device_id.h> now has a generic version, so the #ifdef
CONFIG_X86 around the include is no longer needed.

od_should_io_be_busy() still needs CONFIG_X86 for boot_cpu_data.

Signed-off-by: Pavel Popov <pavel.e.popov@xxxxxxxxx>
---
Depends on <asm-generic/cpu_device_id.h> from [1]; please apply after
it is in mainline.


Yeah, this patch strictly depends on [1] (series patch 1/3) being in
mainline first; otherwise non-x86 builds break.

Reviewed-by: Zhongqiu Han <zhongqiu.han@xxxxxxxxxxxxxxxx>


[1] https://lore.kernel.org/r/20261111234439.4098-1-pavel.e.popov@xxxxxxxxx

drivers/cpufreq/cpufreq_ondemand.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/cpufreq/cpufreq_ondemand.h b/drivers/cpufreq/cpufreq_ondemand.h
index 2ca8f1aaf2e..0e33865f9d3 100644
--- a/drivers/cpufreq/cpufreq_ondemand.h
+++ b/drivers/cpufreq/cpufreq_ondemand.h
@@ -6,6 +6,8 @@
* Author: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
*/
+#include <asm/cpu_device_id.h>
+
#include "cpufreq_governor.h"
struct od_policy_dbs_info {
@@ -26,8 +28,6 @@ struct od_dbs_tuners {
};
#ifdef CONFIG_X86
-#include <asm/cpu_device_id.h>
-
/*
* Not all CPUs want IO time to be accounted as busy; this depends on
* how efficient idling at a higher frequency/voltage is.


--
Thx and BRs,
Zhongqiu Han