Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 604032 - x11-plugins/gkrellm-cpupower-0.1.6-r1 with >=sys-power/cpupower-4.7.0 warning: implicit declaration of function ‘cpufreq_cpu_exists’
Summary: x11-plugins/gkrellm-cpupower-0.1.6-r1 with >=sys-power/cpupower-4.7.0 warning...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 622736
Blocks:
  Show dependency tree
 
Reported: 2016-12-29 13:42 UTC by Tomasz Golinski
Modified: 2017-07-07 08:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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