CPUFREQ: Try to load pcc driver on HP ProLiants automatically
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
@@ -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" );
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 autoloadedSigned-off-by Thomas Renninger <[email protected]>drivers/cpufreq/pcc-cpufreq.c +0
-0
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" );