Skip to contentSkip to conversation

CPUFREQ: Try to load pcc driver on HP ProLiants automatically

PATCH Thomas Renninger 2 participants 2 messages Apr 23, 2014 – Apr 24, 2014 CPU frequency scaling framework

lore
Share & tools
lore
#0 lore raw

HP ProLiants are sold with CPU frequency controlled by BIOS by default. The pcc-cpufreq driver still exports some frequency info to userspace and should be tried to get loaded on these platforms.

Successfully tested on a recent ProLiant machine:
- without this patch no pcc-cpufreq driver loaded, no frequency info
- with this patch the driver got autoloaded

drivers/cpufreq/pcc-cpufreq.c +2 -0
index 728a2d8..ff1ebd0 100644
@@ -603,6 +603,8 @@ static void __exit pcc_cpufreq_exit(void)
 	free_percpu(pcc_cpu_info);
 }
 
+MODULE_ALIAS("dmi:*:svnHP:pnProLiant*:*");
+
 MODULE_AUTHOR("Matthew Garrett, Naga Chumbalkar");
 MODULE_VERSION(PCC_VERSION);
 MODULE_DESCRIPTION("Processor Clocking Control interface driver");
maintainer Acked-by
#1 lore raw

As Rafael picks patches from patchworks, you may need to resend it to linux-pm, for now I have cc'id it.

Quoted 16 lines · Thomas Renninger

HP ProLiants are sold with CPU frequency controlled by BIOS by default. The pcc-cpufreq driver still exports some frequency info to userspace and should be tried to get loaded on these platforms.

Successfully tested on a recent ProLiant machine:
- without this patch no pcc-cpufreq driver loaded, no frequency info
- with this patch the driver got autoloaded

drivers/cpufreq/pcc-cpufreq.c +0 -0
index 728a2d8..ff1ebd0 100644

drivers/cpufreq/pcc-cpufreq.c static void __exit pcc_cpufreq_exit(void) · line 610

Quoted 8 lines
drivers/cpufreq/pcc-cpufreq.c +2 -0
@@ -603,6 +603,8 @@ static void __exit pcc_cpufreq_exit(void)
        free_percpu(pcc_cpu_info);
 }
 
+MODULE_ALIAS("dmi:*:svnHP:pnProLiant*:*");
+
 MODULE_AUTHOR("Matthew Garrett, Naga Chumbalkar");
 MODULE_VERSION(PCC_VERSION);
 MODULE_DESCRIPTION("Processor Clocking Control interface driver");