lkml.org 
[lkml]   [2021]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/4] PM / devfreq: Add cpu based scaling support to passive governor
Date
The devfreq passive governor has already supported the devfreq parent device
for coupling the frequency change if some hardware have the constraints
such as power sharing and so on.

Add cpu based scaling support to passive governor with required-opp property.
It uses the cpufreq notifier to catch the frequency change timing of cpufreq
and get the next frequency according to new cpu frequency by using required-opp
property. It is based on patch[1] and then just code clean-up by myself.

Make the common code for both passive_devfreq and passive_cpufreq
parent type to remove the duplicate code.

The patch[2] is required for this patchset to use required-opp property.

[1] [RFC,v2] PM / devfreq: Add cpu based scaling support to passive_governor
- https://lore.kernel.org/patchwork/patch/1101049/
[2] opp: Allow required-opps to be used for non genpd use cases
- https://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git/commit/?h=opp/linux-next&id=5736929761d187499bdf8e2019090e3ed43d3d7b


Dear Andrew-sh.Cheng and Hsin-Yi Wang,
Please test your patches based on this patchset and then reply the test result
with your Tested-by tag or reviewed-by tag. Thanks for your work.

Chanwoo Choi (3):
PM / devfreq: passive: Fix get_target_freq when not using required-opp
PM / devfreq: Export devfreq_get_freq_ragne symbol within devfreq
PM / devfreq: passive: Reduce duplicate code when passive_devfreq case

Saravana Kannan (1):
PM / devfreq: Add cpu based scaling support to passive governor

drivers/devfreq/devfreq.c | 17 +-
drivers/devfreq/governor.h | 24 +++
drivers/devfreq/governor_passive.c | 325 +++++++++++++++++++++++------
include/linux/devfreq.h | 16 +-
4 files changed, 310 insertions(+), 72 deletions(-)

--
2.17.1

\
 
 \ /
  Last update: 2021-06-17 07:47    [W:0.108 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site