diff options
| -rw-r--r-- | Documentation/admin-guide/pm/intel_pstate.rst | 14 | ||||
| -rw-r--r-- | drivers/cpufreq/qcom-cpufreq-kryo.c | 8 |
2 files changed, 16 insertions, 6 deletions
diff --git a/Documentation/admin-guide/pm/intel_pstate.rst b/Documentation/admin-guide/pm/intel_pstate.rst index 8b9164990956..8f1d3de449b5 100644 --- a/Documentation/admin-guide/pm/intel_pstate.rst +++ b/Documentation/admin-guide/pm/intel_pstate.rst | |||
| @@ -324,8 +324,7 @@ Global Attributes | |||
| 324 | 324 | ||
| 325 | ``intel_pstate`` exposes several global attributes (files) in ``sysfs`` to | 325 | ``intel_pstate`` exposes several global attributes (files) in ``sysfs`` to |
| 326 | control its functionality at the system level. They are located in the | 326 | control its functionality at the system level. They are located in the |
| 327 | ``/sys/devices/system/cpu/cpufreq/intel_pstate/`` directory and affect all | 327 | ``/sys/devices/system/cpu/intel_pstate/`` directory and affect all CPUs. |
| 328 | CPUs. | ||
| 329 | 328 | ||
| 330 | Some of them are not present if the ``intel_pstate=per_cpu_perf_limits`` | 329 | Some of them are not present if the ``intel_pstate=per_cpu_perf_limits`` |
| 331 | argument is passed to the kernel in the command line. | 330 | argument is passed to the kernel in the command line. |
| @@ -379,6 +378,17 @@ argument is passed to the kernel in the command line. | |||
| 379 | but it affects the maximum possible value of per-policy P-state limits | 378 | but it affects the maximum possible value of per-policy P-state limits |
| 380 | (see `Interpretation of Policy Attributes`_ below for details). | 379 | (see `Interpretation of Policy Attributes`_ below for details). |
| 381 | 380 | ||
| 381 | ``hwp_dynamic_boost`` | ||
| 382 | This attribute is only present if ``intel_pstate`` works in the | ||
| 383 | `active mode with the HWP feature enabled <Active Mode With HWP_>`_ in | ||
| 384 | the processor. If set (equal to 1), it causes the minimum P-state limit | ||
| 385 | to be increased dynamically for a short time whenever a task previously | ||
| 386 | waiting on I/O is selected to run on a given logical CPU (the purpose | ||
| 387 | of this mechanism is to improve performance). | ||
| 388 | |||
| 389 | This setting has no effect on logical CPUs whose minimum P-state limit | ||
| 390 | is directly set to the highest non-turbo P-state or above it. | ||
| 391 | |||
| 382 | .. _status_attr: | 392 | .. _status_attr: |
| 383 | 393 | ||
| 384 | ``status`` | 394 | ``status`` |
diff --git a/drivers/cpufreq/qcom-cpufreq-kryo.c b/drivers/cpufreq/qcom-cpufreq-kryo.c index 01bddacf5c3b..29389accf3e9 100644 --- a/drivers/cpufreq/qcom-cpufreq-kryo.c +++ b/drivers/cpufreq/qcom-cpufreq-kryo.c | |||
| @@ -87,8 +87,8 @@ static int qcom_cpufreq_kryo_probe(struct platform_device *pdev) | |||
| 87 | int ret; | 87 | int ret; |
| 88 | 88 | ||
| 89 | cpu_dev = get_cpu_device(0); | 89 | cpu_dev = get_cpu_device(0); |
| 90 | if (NULL == cpu_dev) | 90 | if (!cpu_dev) |
| 91 | ret = -ENODEV; | 91 | return -ENODEV; |
| 92 | 92 | ||
| 93 | msm8996_version = qcom_cpufreq_kryo_get_msm_id(); | 93 | msm8996_version = qcom_cpufreq_kryo_get_msm_id(); |
| 94 | if (NUM_OF_MSM8996_VERSIONS == msm8996_version) { | 94 | if (NUM_OF_MSM8996_VERSIONS == msm8996_version) { |
| @@ -97,8 +97,8 @@ static int qcom_cpufreq_kryo_probe(struct platform_device *pdev) | |||
| 97 | } | 97 | } |
| 98 | 98 | ||
| 99 | np = dev_pm_opp_of_get_opp_desc_node(cpu_dev); | 99 | np = dev_pm_opp_of_get_opp_desc_node(cpu_dev); |
| 100 | if (IS_ERR(np)) | 100 | if (!np) |
| 101 | return PTR_ERR(np); | 101 | return -ENOENT; |
| 102 | 102 | ||
| 103 | ret = of_device_is_compatible(np, "operating-points-v2-kryo-cpu"); | 103 | ret = of_device_is_compatible(np, "operating-points-v2-kryo-cpu"); |
| 104 | if (!ret) { | 104 | if (!ret) { |
