projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a308bb
)
cpufreq: brcmstb-avs-cpufreq: extend sysfs entry brcm_avs_pmap
author
Markus Mayer
<
[email protected]
>
Mon, 19 Dec 2016 20:10:27 +0000
(12:10 -0800)
committer
Rafael J. Wysocki
<
[email protected]
>
Fri, 27 Jan 2017 10:43:48 +0000
(11:43 +0100)
We extend the brcm_avs_pmap sysfs entry (which issues the GET_PMAP
command to AVS) to include all fields from struct pmap. This means
adding mode (AVS, DVS, DVFS) and state (the P-state) to the output.
Signed-off-by: Markus Mayer <
[email protected]
>
Acked-by: Viresh Kumar <
[email protected]
>
Signed-off-by: Rafael J. Wysocki <
[email protected]
>
drivers/cpufreq/brcmstb-avs-cpufreq.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/brcmstb-avs-cpufreq.c
b/drivers/cpufreq/brcmstb-avs-cpufreq.c
index 4fda623e55bb728e910ac0f0995cc7d8cb34f330..2c6e3253ba644b34885649f69088d8d1bf2ae514 100644
(file)
--- a/
drivers/cpufreq/brcmstb-avs-cpufreq.c
+++ b/
drivers/cpufreq/brcmstb-avs-cpufreq.c
@@
-954,9
+954,9
@@
static ssize_t show_brcm_avs_pmap(struct cpufreq_policy *policy, char *buf)
brcm_avs_parse_p1(pmap.p1, &mdiv_p0, &pdiv, &ndiv);
brcm_avs_parse_p2(pmap.p2, &mdiv_p1, &mdiv_p2, &mdiv_p3, &mdiv_p4);
- return sprintf(buf, "0x%08x 0x%08x %u %u %u %u %u %u %u\n",
+ return sprintf(buf, "0x%08x 0x%08x %u %u %u %u %u %u %u
%u %u
\n",
pmap.p1, pmap.p2, ndiv, pdiv, mdiv_p0, mdiv_p1, mdiv_p2,
- mdiv_p3, mdiv_p4);
+ mdiv_p3, mdiv_p4
, pmap.mode, pmap.state
);
}
static ssize_t show_brcm_avs_voltage(struct cpufreq_policy *policy, char *buf)