1. 18 Oct, 2018 10 commits
    • Rafael J. Wysocki's avatar
      Merge branches 'pm-devfreq' and 'pm-tools' · cc19b05e
      Rafael J. Wysocki authored
      * pm-devfreq:
        PM / devfreq: remove redundant null pointer check before kfree
        PM / devfreq: stopping the governor before device_unregister()
        PM / devfreq: Convert to using %pOFn instead of device_node.name
        PM / devfreq: Make update_devfreq() public
        PM / devfreq: Don't adjust to user limits in governors
        PM / devfreq: Fix handling of min/max_freq == 0
        PM / devfreq: Drop custom MIN/MAX macros
        PM / devfreq: Fix devfreq_add_device() when drivers are built as modules.
      
      * pm-tools:
        PM / tools: sleepgraph and bootgraph: upgrade to v5.2
        PM / tools: sleepgraph: first batch of v5.2 changes
        cpupower: Fix coredump on VMWare
        cpupower: Fix AMD Family 0x17 msr_pstate size
        cpupower: remove stringop-truncation waring
      cc19b05e
    • Rafael J. Wysocki's avatar
      Merge branches 'pm-opp' and 'powercap' · 5d113aa6
      Rafael J. Wysocki authored
      * pm-opp:
        PM / OPP: _of_add_opp_table_v2(): increment count only if OPP is added
        cpufreq: dt: Try freeing static OPPs only if we have added them
        OPP: Return error on error from dev_pm_opp_get_opp_count()
        OPP: Improve error handling in dev_pm_opp_of_cpumask_add_table()
        OPP: Pass OPP table to _of_add_opp_table_v{1|2}()
        OPP: Prevent creating multiple OPP tables for devices sharing OPP nodes
        OPP: Use a single mechanism to free the OPP table
        OPP: Don't remove dynamic OPPs from _dev_pm_opp_remove_table()
        cpufreq: mvebu: Remove OPPs using dev_pm_opp_remove()
        OPP: Create separate kref for static OPPs list
        OPP: Don't take OPP table's kref for static OPPs
        OPP: Parse OPP table's DT properties from _of_init_opp_table()
        OPP: Pass index to _of_init_opp_table()
        OPP: Protect dev_list with opp_table lock
        OPP: Don't try to remove all OPP tables on failure
        OPP: Free OPP table properly on performance state irregularities
      
      * powercap:
        powercap: RAPL: Get rid of custom RAPL_CPU() macro
      5d113aa6
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-pm' and 'pm-sleep' · 3f858ae0
      Rafael J. Wysocki authored
      * acpi-pm:
        ACPI / PM: LPIT: Register sysfs attributes based on FADT
      
      * pm-sleep:
        x86-32, hibernate: Adjust in_suspend after resumed on 32bit system
        x86-32, hibernate: Set up temporary text mapping for 32bit system
        x86-32, hibernate: Switch to relocated restore code during resume on 32bit system
        x86-32, hibernate: Switch to original page table after resumed
        x86-32, hibernate: Use the page size macro instead of constant value
        x86-32, hibernate: Use temp_pgt as the temporary page table
        x86, hibernate: Rename temp_level4_pgt to temp_pgt
        x86-32, hibernate: Enable CONFIG_ARCH_HIBERNATION_HEADER on 32bit system
        x86, hibernate: Extract the common code of 64/32 bit system
        x86-32/asm/power: Create stack frames in hibernate_asm_32.S
        PM / hibernate: Check the success of generating md5 digest before hibernation
        x86, hibernate: Fix nosave_regions setup for hibernation
        PM / sleep: Show freezing tasks that caused a suspend abort
        PM / hibernate: Documentation: fix image_size default value
      3f858ae0
    • 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 5 commits
  4. 15 Oct, 2018 1 commit
  5. 14 Oct, 2018 2 commits
  6. 13 Oct, 2018 11 commits
  7. 12 Oct, 2018 10 commits