gpu: reset keep_count when loading shake[2/3]
authorJiyu Yang <Jiyu.Yang@amlogic.com>
Wed, 23 Oct 2019 17:10:38 +0000 (01:10 +0800)
committerJiyu Yang <jiyu.yang@amlogic.com>
Thu, 24 Oct 2019 09:20:31 +0000 (17:20 +0800)
commit606bcb0fb7eac5d43c86f98165918250856057bd
treebf368cf5fb1ce36a9fd9980c6eb1303078205623
parent39533549dfb834adc549eb0bee577b41c063ee7a
gpu: reset keep_count when loading shake[2/3]

PD#SWPL-15215

Problem:
preheat clk usually set before utilization is zero, which lead
stay_count go down from zero.

Solution:
1. reset stay_count when utilization in threshold
2. reset stay_count when preheat

Verify:
newton_BCM

Change-Id: Ia697fe129189c9481b5ec6180c65911866ed1a8d
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
dvalin/kernel/drivers/gpu/arm/midgard/platform/devicetree/scaling.c