Skip to contentSkip to conversation

intel_idle: Remove unused driver version constant

PATCH RESEND Applied Artem Bityutskiy 2 participants 2 messages Dec 15, 2025 – Jan 7 Intel idle driver

lore
Share & tools
lore

Artem Bityutskiy

author maintainer
#0 lore raw

PATCH RESEND 1/1 intel_idle: Remove unused driver version constant

From: Artem Bityutskiy <[email protected]>

The INTEL_IDLE_VERSION constant has not been updated since 2020 and serves no useful purpose. The driver version is implicitly defined by the kernel version, making this constant redundant.

Remove the constant to eliminate potential confusion about version tracking.

---
 drivers/idle/intel_idle.c | 5 -----
 1 file changed, 5 deletions(-)

Re-sending, for some reason the first submission did not arrive to the linux-pm mailing list, I cannot find it in the archives.

drivers/idle/intel_idle.c +0 -5
index 9ba83954c2555..aa44b3c2cb2c4 100644
@@ -63,8 +63,6 @@
 #include <asm/fpu/api.h>
 #include <asm/smp.h>
 
-#define INTEL_IDLE_VERSION "0.5.1"
-
 static struct cpuidle_driver intel_idle_driver = {
 	.name = "intel_idle",
 	.owner = THIS_MODULE,
@@ -2478,9 +2476,6 @@ static int __init intel_idle_init(void)
 		return -ENODEV;
 	}
 
-	pr_debug("v" INTEL_IDLE_VERSION " model 0x%X\n",
-		 boot_cpu_data.x86_model);
-
 	intel_idle_cpuidle_devices = alloc_percpu(struct cpuidle_device);
 	if (!intel_idle_cpuidle_devices)
 		return -ENOMEM;
Signature · 1 line
2.52.0
maintainer Applied
#1 lore raw
Quoted 33 lines · Artem Bityutskiy

From: Artem Bityutskiy <[email protected]>

The INTEL_IDLE_VERSION constant has not been updated since 2020 and serves no useful purpose. The driver version is implicitly defined by the kernel version, making this constant redundant.

Remove the constant to eliminate potential confusion about version tracking.

---
 drivers/idle/intel_idle.c | 5 -----
 1 file changed, 5 deletions(-)

Re-sending, for some reason the first submission did not arrive to the linux-pm mailing list, I cannot find it in the archives.

drivers/idle/intel_idle.c +0 -2
index 9ba83954c2555..aa44b3c2cb2c4 100644
@@ -63,8 +63,6 @@
 #include <asm/fpu/api.h>
 #include <asm/smp.h>
 
-#define INTEL_IDLE_VERSION "0.5.1"
-
 static struct cpuidle_driver intel_idle_driver = {
        .name = "intel_idle",
        .owner = THIS_MODULE,

drivers/idle/intel_idle.c static int __init intel_idle_init(void)

Quoted 10 lines
drivers/idle/intel_idle.c +0 -4
@@ -2478,9 +2476,6 @@ static int __init intel_idle_init(void)
                return -ENODEV;
        }
 
-       pr_debug("v" INTEL_IDLE_VERSION " model 0x%X\n",
-                boot_cpu_data.x86_model);
-
        intel_idle_cpuidle_devices = alloc_percpu(struct cpuidle_device);
        if (!intel_idle_cpuidle_devices)
                return -ENOMEM;
--

Applied as 6.20 material, thanks!