1. 13 7月, 2020 1 次提交
  2. 23 6月, 2020 1 次提交
  3. 14 6月, 2020 1 次提交
    • M
      treewide: replace '---help---' in Kconfig files with 'help' · a7f7f624
      Masahiro Yamada 提交于
      Since commit 84af7a61 ("checkpatch: kconfig: prefer 'help' over
      '---help---'"), the number of '---help---' has been gradually
      decreasing, but there are still more than 2400 instances.
      
      This commit finishes the conversion. While I touched the lines,
      I also fixed the indentation.
      
      There are a variety of indentation styles found.
      
        a) 4 spaces + '---help---'
        b) 7 spaces + '---help---'
        c) 8 spaces + '---help---'
        d) 1 space + 1 tab + '---help---'
        e) 1 tab + '---help---'    (correct indentation)
        f) 1 tab + 1 space + '---help---'
        g) 1 tab + 2 spaces + '---help---'
      
      In order to convert all of them to 1 tab + 'help', I ran the
      following commend:
      
        $ find . -name 'Kconfig*' | xargs sed -i 's/^[[:space:]]*---help---/\thelp/'
      Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
      a7f7f624
  4. 05 6月, 2020 2 次提交
    • X
      cpufreq: CPPC: add SW BOOST support · 54e74df5
      Xiongfeng Wang 提交于
      To add SW BOOST support for CPPC, we need to get the max frequency of
      boost mode and non-boost mode. ACPI spec 6.2 section 8.4.7.1 describes
      the following two CPC registers.
      
      "Highest performance is the absolute maximum performance an individual
      processor may reach, assuming ideal conditions. This performance level
      may not be sustainable for long durations, and may only be achievable if
      other platform components are in a specific state; for example, it may
      require other processors be in an idle state.
      
      Nominal Performance is the maximum sustained performance level of the
      processor, assuming ideal operating conditions. In absence of an
      external constraint (power, thermal, etc.) this is the performance level
      the platform is expected to be able to maintain continuously. All
      processors are expected to be able to sustain their nominal performance
      state simultaneously."
      
      To add SW BOOST support for CPPC, we can use Highest Performance as the
      max performance in boost mode and Nominal Performance as the max
      performance in non-boost mode. If the Highest Performance is greater
      than the Nominal Performance, we assume SW BOOST is supported.
      
      The current CPPC driver does not support SW BOOST and use 'Highest
      Performance' as the max performance the CPU can achieve. 'Nominal
      Performance' is used to convert 'performance' to 'frequency'. That
      means, if firmware enable boost and provide a value for Highest
      Performance which is greater than Nominal Performance, boost feature is
      enabled by default.
      
      Because SW BOOST is disabled by default, so, after this patch, boost
      feature is disabled by default even if boost is enabled by firmware.
      Signed-off-by: NXiongfeng Wang <wangxiongfeng2@huawei.com>
      Suggested-by: NViresh Kumar <viresh.kumar@linaro.org>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      [ rjw: Subject ]
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      54e74df5
    • X
      cpufreq: change '.set_boost' to act on one policy · cf6fada7
      Xiongfeng Wang 提交于
      Macro 'for_each_active_policy()' is defined internally. To avoid some
      cpufreq driver needing this macro to iterate over all the policies in
      '.set_boost' callback, we redefine '.set_boost' to act on only one
      policy and pass the policy as an argument.
      
      'cpufreq_boost_trigger_state()' iterates over all the policies to set
      boost for the system.
      
      This is preparation for adding SW BOOST support for CPPC.
      
      To protect Boost enable/disable by sysfs from CPU online/offline,
      add 'cpu_hotplug_lock' before calling '.set_boost' for each CPU.
      
      Also move the lock from 'set_boost()' to 'store_cpb()' in
      acpi_cpufreq.
      Signed-off-by: NXiongfeng Wang <wangxiongfeng2@huawei.com>
      Suggested-by: NViresh Kumar <viresh.kumar@linaro.org>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      [ rjw: Subject & changelog ]
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      cf6fada7
  5. 29 5月, 2020 1 次提交
  6. 18 5月, 2020 2 次提交
  7. 08 5月, 2020 1 次提交
  8. 07 5月, 2020 2 次提交
  9. 04 5月, 2020 1 次提交
  10. 28 4月, 2020 4 次提交
  11. 27 4月, 2020 1 次提交
  12. 17 4月, 2020 1 次提交
    • R
      cpufreq: intel_pstate: Use passive mode by default without HWP · 33aa46f2
      Rafael J. Wysocki 提交于
      After recent changes allowing scale-invariant utilization to be
      used on x86, the schedutil governor on top of intel_pstate in the
      passive mode should be on par with (or better than) the active mode
      "powersave" algorithm of intel_pstate on systems in which
      hardware-managed P-states (HWP) are not used, so it should not be
      necessary to use the internal scaling algorithm in those cases.
      
      Accordingly, modify intel_pstate to start in the passive mode by
      default if the processor at hand does not support HWP of if the driver
      is requested to avoid using HWP through the kernel command line.
      
      Among other things, that will allow utilization clamps and the
      support for RT/DL tasks in the schedutil governor to be utilized on
      systems in which intel_pstate is used.
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      33aa46f2
  13. 16 4月, 2020 1 次提交
  14. 03 4月, 2020 1 次提交
  15. 27 3月, 2020 2 次提交
    • R
      cpufreq: intel_pstate: Select schedutil as the default governor · a00ec387
      Rafael J. Wysocki 提交于
      Modify cpufreq Kconfig to select schedutil as the default governor
      if the intel_pstate driver has been selected and SMP support is
      enabled (because schedutil depends on SMP).
      
      Also select schedutil as well as the performance governor from the
      intel_pstate Kconfig section to ensure the equivalence of the passive
      and active mode governor configuration options.
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      a00ec387
    • R
      cpufreq: intel_pstate: Simplify intel_pstate_cpu_init() · 5ac54113
      Rafael J. Wysocki 提交于
      The initial policy value set by intel_pstate_cpu_init() depends on
      whether or not CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is set, but
      that is not necessary, because the core will set the policy to
      "performance" in cpufreq_init_policy() if the default governor is
      "performance" anyway.
      
      Accordingly, change intel_pstate_cpu_init() to always set policy
      to CPUFREQ_POLICY_POWERSAVE initially to provide a valid fallback
      value to cpufreq_init_policy() in case the default cpufreq governor
      is neither "powersave" nor "performance".
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      5ac54113
  16. 25 3月, 2020 4 次提交
  17. 20 3月, 2020 1 次提交
  18. 17 3月, 2020 1 次提交
  19. 14 3月, 2020 2 次提交
  20. 13 3月, 2020 2 次提交
  21. 12 3月, 2020 1 次提交
  22. 11 3月, 2020 1 次提交
  23. 07 3月, 2020 1 次提交
  24. 06 3月, 2020 1 次提交
  25. 03 3月, 2020 2 次提交
  26. 27 2月, 2020 1 次提交
  27. 17 2月, 2020 1 次提交