From: Srinivas Pandruvada <srinivas.pandruvada-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
To: edubezval-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
rui.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org
Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Srinivas Pandruvada
<srinivas.pandruvada-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Subject: [RFC PATCH 2/2] thermal: x86_pkg_temp: Register threshold callbacks
Date: Mon, 17 Aug 2015 16:52:57 -0700 [thread overview]
Message-ID: <1439855577-17114-2-git-send-email-srinivas.pandruvada@linux.intel.com> (raw)
In-Reply-To: <1439855577-17114-1-git-send-email-srinivas.pandruvada-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Register callbacks to get/set temperature thresholds.
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
---
drivers/thermal/x86_pkg_temp_thermal.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/thermal/x86_pkg_temp_thermal.c b/drivers/thermal/x86_pkg_temp_thermal.c
index 50d1d2c..4b526b8 100644
--- a/drivers/thermal/x86_pkg_temp_thermal.c
+++ b/drivers/thermal/x86_pkg_temp_thermal.c
@@ -279,6 +279,8 @@ static struct thermal_zone_device_ops tzone_ops = {
.get_trip_temp = sys_get_trip_temp,
.get_trip_type = sys_get_trip_type,
.set_trip_temp = sys_set_trip_temp,
+ .get_threshold_temp = sys_get_trip_temp,
+ .set_threshold_temp = sys_set_trip_temp,
};
static bool pkg_temp_thermal_platform_thermal_rate_control(void)
--
2.4.3
next prev parent reply other threads:[~2015-08-17 23:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-17 23:52 [RFC PATCH 1/2] thermal: iio device for thermal sensor Srinivas Pandruvada
[not found] ` <1439855577-17114-1-git-send-email-srinivas.pandruvada-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-08-17 23:52 ` Srinivas Pandruvada [this message]
2015-08-19 17:57 ` Eduardo Valentin
[not found] ` <20150819175712.GB6643-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2015-08-20 15:11 ` Srinivas Pandruvada
2015-08-20 20:57 ` Eduardo Valentin
2015-08-20 4:39 ` Zhang Rui
2015-08-20 15:13 ` Srinivas Pandruvada
2015-08-23 19:29 ` Jonathan Cameron
2015-08-23 20:10 ` Jonathan Cameron
[not found] ` <55DA28B7.3070007-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2015-08-23 22:25 ` Srinivas Pandruvada
2015-08-24 6:27 ` Jonathan Cameron
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=1439855577-17114-2-git-send-email-srinivas.pandruvada@linux.intel.com \
--to=srinivas.pandruvada-vuqaysv1563yd54fqh9/ca@public.gmane.org \
--cc=edubezval-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=rui.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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;
as well as URLs for NNTP newsgroup(s).