cyring / CoreFreq

CoreFreq : CPU monitoring and tuning software designed for 64-bit processors.
https://www.cyring.fr
GNU General Public License v2.0
1.94k stars 127 forks source link

Unknown symbol cpufreq_unregister_driver (err -22) #475

Closed fishbonesnl closed 5 months ago

fishbonesnl commented 5 months ago

Hello again,

CpuFreq stopped working on one of my machines so I copied it over from a working machine, did a make clean and a make and it builds fine. Almalinux 8.8 kernel 4.18.0-513.9.1.el8_9.x86_64. Kernel headers etc are installed (otherwise it would not build).

I perform a make install as root and the I type insmod corefreqk.ko and I get the error message

insmod: ERROR: could not insert module corefreqk.ko: Invalid parameters

A dmesg |tail says

[4754281.870103] corefreqk: disagrees about version of symbol cpufreq_unregister_driver
[4754281.870129] corefreqk: Unknown symbol cpufreq_unregister_driver (err -22)

rmmod corefreqk.ko says module not loaded.

CPU is a Ryzen 9 3800X. CpuFreq used to work fine with this CPU. gcc version is 8.5.0.

Any suggestions?

fishbonesnl commented 5 months ago

And I forgot about the build directory. Please mark as closed and forgive my stupidity.