Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1680569 > unrolled thread
| Started by | "Rafael J. Wysocki" <rafael@kernel.org> |
|---|---|
| First post | 2017-07-03 23:10 +0200 |
| Last post | 2017-07-03 23:10 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v3 2/2] thermal: core: introduce thermal zone device mode control "Rafael J. Wysocki" <rafael@kernel.org> - 2017-07-03 23:10 +0200
| From | "Rafael J. Wysocki" <rafael@kernel.org> |
|---|---|
| Date | 2017-07-03 23:10 +0200 |
| Subject | Re: [PATCH v3 2/2] thermal: core: introduce thermal zone device mode control |
| Message-ID | <tZgLw-75o-19@gated-at.bofh.it> |
On Mon, Jul 3, 2017 at 10:00 AM, Enric Balletbo i Serra <enric.balletbo@collabora.com> wrote: > From: Zhang Rui <rui.zhang@intel.com> > > Thermal "mode" sysfs attribute is introduced to enable/disable a thermal zone, > and .get_mode()/.set_mode() callback is introduced for platform thermal driver > to enable/disable the hardware thermal control logic. And thermal core takes > no action upon thermal zone enable/disable. > > Actually, this is not quite right because thermal core still pokes those > disabled thermal zones occasionally, e.g. upon system resume. > > To fix this, a new flag 'mode' is introduced in struct thermal_zone_device > to represent the thermal zone mode, and several decisions have been made > based on this flag, including > 1. check the thermal zone mode right after it's registered. > 2. skip updating thermal zone if the zone is disabled > 3. stop the polling timer when the thermal zone is disabled > > Note: basically, this patch doesn't affect the existing always-enabled > thermal zones much, with just one exception - > thermal zone .get_mode() must be well prepared to reflect the real thermal > zone status upon the thermal zone registration. > > Signed-off-by: Zhang Rui <rui.zhang@intel.com> > Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> I'm thinking that Rui is going to push this patch himself, in which case there's no need to resend (and you should add your sign-off to the patch when resending it anyway). Thanks, Rafael
Back to top | Article view | linux.kernel
csiph-web