Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754313AbbHLLFk (ORCPT ); Wed, 12 Aug 2015 07:05:40 -0400 Received: from mail-yk0-f172.google.com ([209.85.160.172]:34336 "EHLO mail-yk0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750994AbbHLLFi (ORCPT ); Wed, 12 Aug 2015 07:05:38 -0400 MIME-Version: 1.0 In-Reply-To: <1439288493-19740-2-git-send-email-javi.merino@arm.com> References: <1439222692-3535-1-git-send-email-javi.merino@arm.com> <1439288493-19740-1-git-send-email-javi.merino@arm.com> <1439288493-19740-2-git-send-email-javi.merino@arm.com> From: Daniel Kurtz Date: Wed, 12 Aug 2015 19:05:17 +0800 X-Google-Sender-Auth: -YU0xpoQ2K6i-T2an007EkxqRno Message-ID: Subject: Re: [PATCH v2 1/4] thermal: power_allocator: relax the requirement of a sustainable_power in tzp To: Javi Merino Cc: linux-pm@vger.kernel.org, Dmitry Torokhov , Chung-yih Wang , "linux-kernel@vger.kernel.org" , Punit Agrawal , Zhang Rui , Eduardo Valentin Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1631 Lines: 44 Hi Javi, One Tiny nit below... On Tue, Aug 11, 2015 at 6:21 PM, Javi Merino wrote: > The power allocator governor currently requires that a sustainable power > is passed as part of the thermal zone's thermal zone parameters. If > that parameter is not provided, it doesn't register with the thermal > zone. > > While this parameter is strongly recommended for optimal performance, it > doesn't need to be mandatory. Relax the requirement and allow the > governor to bind to thermal zones that don't provide it by estimating it > from the cooling devices' power model. > > Cc: Zhang Rui > Cc: Eduardo Valentin > Signed-off-by: Javi Merino > --- [snip] > --- a/drivers/thermal/thermal_core.c > +++ b/drivers/thermal/thermal_core.c > @@ -997,6 +997,34 @@ int power_actor_get_max_power(struct thermal_cooling_device *cdev, > } > > /** > + * power_actor_get_min_power() - get the mainimum power that a cdev can consume > + * @cdev: pointer to &thermal_cooling_device > + * @tz: a valid thermal zone device pointer > + * @min_power: pointer in which to store the minimum power > + * > + * Calculate the minimum power consumption in milliwats that the ^ milliwatts Thanks, -Dan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/