From: John Madieu <john.madieu.xa@bp.renesas.com>
To: geert+renesas@glider.be, niklas.soderlund+renesas@ragnatech.se,
conor+dt@kernel.org, krzk+dt@kernel.org, robh@kernel.org,
rafael@kernel.org, daniel.lezcano@linaro.org
Cc: magnus.damm@gmail.com, claudiu.beznea.uj@bp.renesas.com,
devicetree@vger.kernel.org, john.madieu@gmail.com,
rui.zhang@intel.com, linux-kernel@vger.kernel.org,
linux-renesas-soc@vger.kernel.org, biju.das.jz@bp.renesas.com,
linux-pm@vger.kernel.org,
John Madieu <john.madieu.xa@bp.renesas.com>
Subject: [RFC PATCH 2/3] tmon: Add support for THERMAL_TRIP_PLUG type
Date: Sun, 9 Mar 2025 13:13:22 +0100 [thread overview]
Message-ID: <20250309121324.29633-3-john.madieu.xa@bp.renesas.com> (raw)
In-Reply-To: <20250309121324.29633-1-john.madieu.xa@bp.renesas.com>
Extend tmon to handle the new THERMAL_TRIP_PLUG trip type:
- Update UI legend to show 'G=Plug' in status display
- Map trip type to 'G' character in trip_type_to_char()
Align tmon with kernel thermal framework extensions that support
CPU hotplug-based cooling through dedicated trip points.
Signed-off-by: John Madieu <john.madieu.xa@bp.renesas.com>
---
tools/thermal/tmon/tmon.h | 1 +
tools/thermal/tmon/tui.c | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/tools/thermal/tmon/tmon.h b/tools/thermal/tmon/tmon.h
index 44d16d778f04..b9b413be5eac 100644
--- a/tools/thermal/tmon/tmon.h
+++ b/tools/thermal/tmon/tmon.h
@@ -57,6 +57,7 @@ struct cdev_info {
enum trip_type {
THERMAL_TRIP_CRITICAL,
+ THERMAL_TRIP_PLUG,
THERMAL_TRIP_HOT,
THERMAL_TRIP_PASSIVE,
THERMAL_TRIP_ACTIVE,
diff --git a/tools/thermal/tmon/tui.c b/tools/thermal/tmon/tui.c
index 7f5dd2b87f15..8579b9a0d00d 100644
--- a/tools/thermal/tmon/tui.c
+++ b/tools/thermal/tmon/tui.c
@@ -307,7 +307,7 @@ void show_dialogue(void)
wattroff(w, A_BOLD);
/* print legend at the bottom line */
mvwprintw(w, rows - 2, 1,
- "Legend: A=Active, P=Passive, C=Critical");
+ "Legend: A=Active, P=Passive, G=Plug, C=Critical");
wrefresh(dialogue_window);
}
@@ -535,6 +535,7 @@ static char trip_type_to_char(int type)
switch (type) {
case THERMAL_TRIP_CRITICAL: return 'C';
case THERMAL_TRIP_HOT: return 'H';
+ case THERMAL_TRIP_PLUG: return 'G';
case THERMAL_TRIP_PASSIVE: return 'P';
case THERMAL_TRIP_ACTIVE: return 'A';
default:
--
2.25.1
next prev parent reply other threads:[~2025-03-09 12:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-09 12:13 [RFC PATCH 0/3] thermal: Add CPU hotplug cooling driver John Madieu
2025-03-09 12:13 ` [RFC PATCH 1/3] thermal/cpuplog_cooling: " John Madieu
2025-03-11 7:30 ` Krzysztof Kozlowski
2025-03-11 11:38 ` John Madieu
2025-03-11 8:28 ` Geert Uytterhoeven
2025-03-11 11:41 ` John Madieu
2025-03-09 12:13 ` John Madieu [this message]
2025-03-09 12:13 ` [RFC PATCH 3/3] arm64: dts: renesas: r9a09g047: Add thermal hotplug trip point John Madieu
2025-03-11 10:53 ` Christian Loehle
2025-03-11 11:57 ` John Madieu
2025-03-11 15:29 ` Christian Loehle
2025-03-10 10:17 ` [RFC PATCH 0/3] thermal: Add CPU hotplug cooling driver Biju Das
2025-03-11 11:33 ` John Madieu
2025-03-15 14:40 ` Rafael J. Wysocki
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=20250309121324.29633-3-john.madieu.xa@bp.renesas.com \
--to=john.madieu.xa@bp.renesas.com \
--cc=biju.das.jz@bp.renesas.com \
--cc=claudiu.beznea.uj@bp.renesas.com \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=john.madieu@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=niklas.soderlund+renesas@ragnatech.se \
--cc=rafael@kernel.org \
--cc=robh@kernel.org \
--cc=rui.zhang@intel.com \
/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