Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 604032

Summary: x11-plugins/gkrellm-cpupower-0.1.6-r1 with >=sys-power/cpupower-4.7.0 warning: implicit declaration of function ‘cpufreq_cpu_exists’
Product: Gentoo Linux Reporter: Tomasz Golinski <tomaszg>
Component: Current packagesAssignee: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 622736    
Bug Blocks:    

Description Tomasz Golinski 2016-12-29 13:42:22 UTC
Starting from kernel 4.7 the function cpufreq_cpu_exists() (used to determine number of CPU cores) is removed in favour of cpupower_is_cpu_online(). It is not exactly the same thing and it needs additional header cpuidle.h:  

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/tools/power/cpupower/lib?id=ac5a181

Instead of using that new function, one solution is just to perform the test just by calling cpufreq_get_freq_kernel(), see e.g. this commit in my fork https://github.com/tomaszg7/gkrellm2-cpupower/commit/7a71966ced4b88ea14a921e3f4d0a926f172aaf3
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-07-07 08:07:46 UTC
Should be fixed in x11-plugins/gkrellm-cpupower-0.2