Pull more power management updates from Rafael Wysocki: "First of all, the adaptive voltage scaling (AVS) drivers go to new platform-specific locations as planned (this part was reported to have merge conflicts against the new arm-soc updates in linux-next). In addition to that, there are some fixes (intel_idle, intel_pstate, RAPL, acpi_cpufreq), the addition of on/off notifiers and idle state accounting support to the generic power domains (genpd) code and some janitorial changes all over. Specifics: - Move the AVS drivers to new platform-specific locations and get rid of the drivers/power/avs directory (Ulf Hansson). - Add on/off notifiers and idle state accounting support to the generic power domains (genpd) framework (Ulf Hansson, Lina Iyer). - Ulf will maintain the PM domain part of cpuidle-psci (Ulf Hansson). - Make intel_idle disregard ACPI _CST if it cannot use the data returned by that method (Mel Gorman). - Modify intel_pstate to avoid leaving useless sysfs directory structure behind if it cannot be registered (Chen Yu). - Fix domain detection in the RAPL power capping driver and prevent it from failing to enumerate the Psys RAPL domain (Zhang Rui). - Allow acpi-cpufreq to use ACPI _PSD information with Family 19 and later AMD chips (Wei Huang). - Update the driver assumptions comment in intel_idle and fix a kerneldoc comment in the runtime PM framework (Alexander Monakov, Bean Huo). - Avoid unnecessary resets of the cached frequency in the schedutil cpufreq governor to reduce overhead (Wei Wang). - Clean up the cpufreq core a bit (Viresh Kumar). - Make assorted minor janitorial changes (Daniel Lezcano, Geert Uytterhoeven, Hubert Jasudowicz, Tom Rix). - Clean up and optimize the cpupower utility somewhat (Colin Ian King, Martin Kaistra)" * tag 'pm-5.10-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (23 commits) PM: sleep: remove unreachable break PM: AVS: Drop the avs directory and the corresponding Kconfig PM: AVS: qcom-cpr: Move the driver to the qcom specific drivers PM: runtime: Fix typo in pm_runtime_set_active() helper comment PM: domains: Fix build error for genpd notifiers powercap: Fix typo in Kconfig "Plance" -> "Plane" cpufreq: schedutil: restore cached freq when next_f is not changed acpi-cpufreq: Honor _PSD table setting on new AMD CPUs PM: AVS: smartreflex Move driver to soc specific drivers PM: AVS: rockchip-io: Move the driver to the rockchip specific drivers PM: domains: enable domain idle state accounting PM: domains: Add curly braces to delimit comment + statement block PM: domains: Add support for PM domain on/off notifiers for genpd powercap/intel_rapl: enumerate Psys RAPL domain together with package RAPL domain powercap/intel_rapl: Fix domain detection intel_idle: Ignore _CST if control cannot be taken from the platform cpuidle: Remove pointless stub intel_idle: mention assumption that WBINVD is not needed MAINTAINERS: Add section for cpuidle-psci PM domain cpufreq: intel_pstate: Delete intel_pstate sysfs if failed to register the driver ...
Showing the changes to kernel (1 of 30 files). Show all
Unified · Split
| @@ -441,6 +441,7 @@ static void sugov_update_single(struct update_util_data *hook, u64 time, · 440 unmodified lines | |||
| 441 | unsigned long util, max; | 441 | unsigned long util, max; |
| 442 | unsigned int next_f; | 442 | unsigned int next_f; |
| 443 | bool busy; | 443 | bool busy; |
| 444 | unsigned int cached_freq = sg_policy->cached_raw_freq; | ||
| 444 | 445 | ||
| 445 | sugov_iowait_boost(sg_cpu, time, flags); | 446 | sugov_iowait_boost(sg_cpu, time, flags); |
| 446 | sg_cpu->last_update = time; | 447 | sg_cpu->last_update = time; |
| @@ -464,8 +465,8 @@ static void sugov_update_single(struct update_util_data *hook, u64 time, · 17 unmodified lines | |||
| 464 | if (busy && next_f < sg_policy->next_freq) { | 465 | if (busy && next_f < sg_policy->next_freq) { |
| 465 | next_f = sg_policy->next_freq; | 466 | next_f = sg_policy->next_freq; |
| 466 | 467 | ||
| 467 | /* Reset cached freq as next_freq has changed */ | 468 | /* Restore cached freq as next_freq has changed */ |
| 468 | sg_policy->cached_raw_freq = 0; | 469 | sg_policy->cached_raw_freq = cached_freq; |
| 469 | } | 470 | } |
| 470 | 471 | ||
| 471 | /* | 472 | /* |