thermal: power_allocator: relax the requirement of a sustainable_power in tzp
authorJavi Merino <javi.merino@arm.com>
Mon, 14 Sep 2015 13:23:51 +0000 (14:23 +0100)
committerEduardo Valentin <edubezval@gmail.com>
Mon, 14 Sep 2015 14:40:51 +0000 (07:40 -0700)
commite055bb0f9a6e5c09bedf41c2a5b881edbd7f2ed0
treed6de5fd0c97375bf8a374cb3b87b85841f322308
parentc973c3bcec3752455c4d7545edd42935cd7942d9
thermal: power_allocator: relax the requirement of a sustainable_power in tzp

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 <rui.zhang@intel.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/power_allocator.c