summaryrefslogtreecommitdiffstats
path: root/tools/power/cpupower/lib/cpuidle.c
diff options
context:
space:
mode:
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>2018-10-16 11:56:26 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-01 09:42:50 +0100
commit3b99dcd4026a08fc9d1fd5cc0a9fc50529803fca (patch)
tree31f189c5c0e69842617a2d1886830355f6dc070a /tools/power/cpupower/lib/cpuidle.c
parenta0b9ddf4906e6340c4ce920c9450de05021e73ac (diff)
downloadlinux-stable-3b99dcd4026a08fc9d1fd5cc0a9fc50529803fca.tar.gz
linux-stable-3b99dcd4026a08fc9d1fd5cc0a9fc50529803fca.tar.bz2
linux-stable-3b99dcd4026a08fc9d1fd5cc0a9fc50529803fca.zip
tools/power/cpupower: fix compilation with STATIC=true
commit 9de9aa45e9bd67232e000cca42ceb134b8ae51b6 upstream. Rename duplicate sysfs_read_file into cpupower_read_sysfs and fix linking. Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Acked-by: Thomas Renninger <trenn@suse.de> Cc: <stable@vger.kernel.org> Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/power/cpupower/lib/cpuidle.c')
-rw-r--r--tools/power/cpupower/lib/cpuidle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/cpupower/lib/cpuidle.c b/tools/power/cpupower/lib/cpuidle.c
index 9bd4c7655fdb..852d25462388 100644
--- a/tools/power/cpupower/lib/cpuidle.c
+++ b/tools/power/cpupower/lib/cpuidle.c
@@ -319,7 +319,7 @@ static unsigned int sysfs_cpuidle_read_file(const char *fname, char *buf,
snprintf(path, sizeof(path), PATH_TO_CPU "cpuidle/%s", fname);
- return sysfs_read_file(path, buf, buflen);
+ return cpupower_read_sysfs(path, buf, buflen);
}