mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: zhang.lyra@gmail.com
To: linux-pm@vger.kernel.org
Cc: Amit Daniel Kachhap <amit.kachhap@gmail.com>,
	Daniel Lezcano <daniel.lezcano@linaro.org>,
	Viresh Kumar <viresh.kumar@linaro.org>,
	Javi Merino <javi.merino@kernel.org>,
	Zhang Rui <rui.zhang@intel.com>,
	Amit Kucheria <amit.kucheria@verdurent.com>,
	linux-kernel@vger.kernel.org, Orson Zhai <orsonzhai@gmail.com>,
	Baolin Wang <baolin.wang7@gmail.com>,
	Chunyan Zhang <zhang.lyra@gmail.com>,
	Chunyan Zhang <chunyan.zhang@unisoc.com>
Subject: [RFC PATCH v1 0/2] Add platform specific callbacks for cpu cooling
Date: Wed, 15 Apr 2020 11:09:57 +0800	[thread overview]
Message-ID: <20200415030959.1463-1-zhang.lyra@gmail.com> (raw)

From: Jeson Gao <jeson.gao@unisoc.com>

Reducing frequency to too low will affect the system performance, and
sometimes the temperature could not cool down to an ideal value as well
even if the frequency was reduced to the lowest.

This patch provides users a callback to set its own frequency limit to
prevent cpu frequence from being reduced too low. And also give an interface
to allow users to register specific cooling operations, such as unplug cores
or cpu isolation.

Any comments are very appreciated.

jeson.gao (2):
  thermal/drivers/cpufreq_cooling: Add platform callback functions
  thermal/drivers/sprd_cpu_cooling: Add platform mitigation thermal
    driver

 drivers/thermal/Kconfig            |   8 +
 drivers/thermal/Makefile           |   1 +
 drivers/thermal/cpufreq_cooling.c  |  53 +++++
 drivers/thermal/sprd_cpu_cooling.c | 340 +++++++++++++++++++++++++++++
 include/linux/cpu_cooling.h        |  30 +++
 5 files changed, 432 insertions(+)
 create mode 100644 drivers/thermal/sprd_cpu_cooling.c

-- 
2.20.1


             reply	other threads:[~2020-04-15  3:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-15  3:09 zhang.lyra [this message]
2020-04-15  3:09 ` [RFC PATCH v1 1/2] thermal/drivers/cpufreq_cooling: Add platform callback functions zhang.lyra
2020-04-15  3:09 ` [RFC PATCH v1 2/2] thermal/drivers/sprd_cpu_cooling: Add platform mitigation thermal driver zhang.lyra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200415030959.1463-1-zhang.lyra@gmail.com \
    --to=zhang.lyra@gmail.com \
    --cc=amit.kachhap@gmail.com \
    --cc=amit.kucheria@verdurent.com \
    --cc=baolin.wang7@gmail.com \
    --cc=chunyan.zhang@unisoc.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=javi.merino@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=orsonzhai@gmail.com \
    --cc=rui.zhang@intel.com \
    --cc=viresh.kumar@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®