git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
power: fix governor storage to trim newlines
[dpdk.git]
/
lib
/
librte_power
/
power_pstate_cpufreq.c
diff --git
a/lib/librte_power/power_pstate_cpufreq.c
b/lib/librte_power/power_pstate_cpufreq.c
index
9c1a162
..
3e04e80
100644
(file)
--- a/
lib/librte_power/power_pstate_cpufreq.c
+++ b/
lib/librte_power/power_pstate_cpufreq.c
@@
-292,6
+292,8
@@
power_set_governor_performance(struct pstate_power_info *pi)
s = fgets(buf, sizeof(buf), f);
FOPS_OR_NULL_GOTO(s, out);
+ /* Strip off terminating '\n' */
+ strtok(buf, "\n");
/* Check if current governor is performance */
if (strncmp(buf, POWER_GOVERNOR_PERF,