1. 18 Oct, 2018 7 commits
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-cpufreq' · d1551f7a
      Rafael J. Wysocki authored
      * pm-cpufreq:
        cpufreq: tegra186: don't pass GFP_DMA32 to dma_alloc_coherent()
        cpufreq: conservative: Take limits changes into account properly
        Documentation: intel_pstate: Add base_frequency information
        cpufreq: intel_pstate: Add base_frequency attribute
        ACPI / CPPC: Add support for guaranteed performance
        cpufreq: imx6q: read OCOTP through nvmem for imx6ul/imx6ull
        cpufreq: dt-platdev: allow RK3399 to have separate tunables per cluster
        cpufreq / CPPC: Mark acpi_ids as used
        cpufreq: dt: Add support for r8a7744
        cpufreq: Convert to using %pOFn instead of device_node.name
        cpufreq: remove unnecessary unlikely()
      d1551f7a
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-cpuidle' · 41fd838c
      Rafael J. Wysocki authored
      * pm-cpuidle:
        cpuidle: menu: Avoid computations when result will be discarded
        cpuidle: menu: Drop redundant comparison
        cpuidle: menu: Simplify checks related to the polling state
        cpuidle: poll_state: Revise loop termination condition
        cpuidle: menu: Move the latency_req == 0 special case check
        cpuidle: menu: Avoid computations for very close timers
        cpuidle: menu: Do not update last_state_idx in menu_select()
        cpuidle: menu: Get rid of first_idx from menu_select()
        cpuidle: menu: Compute first_idx when latency_req is known
        cpuidle: menu: Fix wakeup statistics updates for polling state
        cpuidle: menu: Replace data->predicted_us with local variable
        cpuidle: enter_state: Don't needlessly calculate diff time
        cpuidle: Remove unnecessary wrapper cpuidle_get_last_residency()
        intel_idle: Get rid of custom ICPU() macro
      41fd838c
    • Ulf Hansson's avatar
      PM / Domains: Document flags for genpd · e5089c2c
      Ulf Hansson authored
      The current documented description of the GENPD_FLAG_* flags, are too
      simplified, so let's extend them.
      Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      e5089c2c
    • Ulf Hansson's avatar
      PM / Domains: Deal with multiple states but no governor in genpd · 2c9b7f87
      Ulf Hansson authored
      A caller of pm_genpd_init() that provides some states for the genpd via the
      ->states pointer in the struct generic_pm_domain, should also provide a
      governor. This because it's the job of the governor to pick a state that
      satisfies the constraints.
      
      Therefore, let's print a warning to inform the user about such bogus
      configuration and avoid to bail out, by instead picking the shallowest
      state before genpd invokes the ->power_off() callback.
      Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      Reviewed-by: default avatarLina Iyer <ilina@codeaurora.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      2c9b7f87
    • Ulf Hansson's avatar
      PM / Domains: Don't treat zero found compatible idle states as an error · 2c361684
      Ulf Hansson authored
      Instead of returning -EINVAL from of_genpd_parse_idle_states() in case none
      compatible states was found, let's return 0 to indicate success. Assign
      also the out-parameter *states to NULL and *n to 0, to indicate to the
      caller that zero states have been found/allocated.
      
      This enables the caller of of_genpd_parse_idle_states() to easier act on
      the returned error code.
      Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      Reviewed-by: default avatarLina Iyer <ilina@codeaurora.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      2c361684
    • Rafael J. Wysocki's avatar
      cpuidle: menu: Avoid computations when result will be discarded · f1c8e410
      Rafael J. Wysocki authored
      If the minimum interval taken into account in the average computation
      loop in get_typical_interval() is less than the expected idle
      duration determined so far, the resultant average cannot be greater
      than that value as well and the entire return result of the function
      is going to be discarded anyway going forward.
      
      In that case, it is a waste of time to carry out the remaining
      computations in get_typical_interval(), so avoid that by returning
      early if the minimum interval is not below the expected idle duration.
      
      No intentional changes of behavior.
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      f1c8e410
    • Rafael J. Wysocki's avatar
      cpuidle: menu: Drop redundant comparison · 12b65ead
      Rafael J. Wysocki authored
      Since the correction factor cannot be greater than RESOLUTION * DECAY,
      the result of the predicted_us computation in menu_select() cannot be
      greater than data->next_timer_us, so it is not necessary to compare
      the "typical interval" value coming from get_typical_interval() with
      data->next_timer_us separately.
      
      It is sufficient to copmare predicted_us with the return value of
      get_typical_interval() directly, so do that and drop the now
      redundant expected_interval variable.
      
      No intentional changes of behavior.
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      12b65ead
  2. 17 Oct, 2018 1 commit
  3. 16 Oct, 2018 4 commits
  4. 15 Oct, 2018 1 commit
  5. 14 Oct, 2018 2 commits
  6. 13 Oct, 2018 11 commits
  7. 12 Oct, 2018 14 commits