phc-intel patch should change the ".name"

Discuss about PHC here. For problems please use the PHC Help forum
Post Reply
martin9959
Posts: 1
Joined: Sun 9. Feb 2014, 20:38

phc-intel patch should change the ".name"

Post by martin9959 » Sun 9. Feb 2014, 21:52

Hi,

As mentioned in this thread, newer Ubuntu kernels allow to choose the cpufreq driver via a kernel command line option cpufreq_driver. AFAICS the choice is made according to the ".name" set in the driver module. However, the linux-phc patch doesn't change the ".name" but rather leaves it to "acpi-cpufreq". The result (for, me, Ubuntu 13.04 and 13.10) is that, when I specify "cupfreq_driver=phc-intel" at the kernel command line, loading the phc-intel module fails with "invalid argument". When I do not specify the cpufreq_driver option, acpi-cpufreq is active (compiled into the kernel in Ubuntu 13.04 & 13.10), loading the phc-intel module therefore fails with the "Device or resource busy" error.

When I change the ".name" in the patch to "phc-intel", everything works as it should (see attached patch to kernel 3.11 as an example, change in line 745).

Sorry for not providing proper patches, I'm not good at diff&patch, but I hope you get the idea...

Regards,

Martin
Attachments
linux-phc-0.4.0.patch-new.tar.bz2
(7.23 KiB) Downloaded 312 times

lio
Posts: 87
Joined: Wed 2. Mar 2011, 18:37

Re: phc-intel patch should change the ".name"

Post by lio » Mon 10. Feb 2014, 12:00

Thanks! Please give the new package a try. http://www.linux-phc.org/forum/viewtopic.php?f=7&t=267

xmichael
Posts: 1
Joined: Wed 30. Apr 2014, 20:11

Re: phc-intel patch should change the ".name"

Post by xmichael » Wed 30. Apr 2014, 20:18

Hi, lio. I've stuck at same as OP problem, but on kernel 3.2. It seems that you haven't fixed 3.2 branch of patchset (I'm able to find ".name" fix in 3.11 dir, but not in 3.2). Can you please help?

lio
Posts: 87
Joined: Wed 2. Mar 2011, 18:37

Re: phc-intel patch should change the ".name"

Post by lio » Sun 18. May 2014, 10:17

Out of curiosity, which distribution do you use? I haven't fixed older patches yet because either distributions ship acpi-cpufreq as a module or they provide versions greater than 3.2.

lio

Post Reply