Commit 691b321
committed
cpufreq: Restrict enabling boost on policies with no boost frequencies
It is possible to have a scenario where not all cpufreq policies support
boost frequencies. And letting sysfs (or other parts of the kernel)
enable boost feature for that policy isn't correct.
Now that all drivers (that required a change) are updated to set the
policy->boost_supported properly, check this flag before enabling boost
feature for a policy.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>1 parent a3f48fb commit 691b321
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
635 | 638 | | |
636 | 639 | | |
637 | 640 | | |
| |||
1587 | 1590 | | |
1588 | 1591 | | |
1589 | 1592 | | |
1590 | | - | |
| 1593 | + | |
1591 | 1594 | | |
1592 | 1595 | | |
1593 | 1596 | | |
| |||
2824 | 2827 | | |
2825 | 2828 | | |
2826 | 2829 | | |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
2827 | 2833 | | |
2828 | 2834 | | |
2829 | 2835 | | |
| |||
0 commit comments