Re: [PATCH v2] thermal: re-calculate k_po/k_pu when update sustainable power

2016-01-05 Thread Daniel Thompson
On 05/01/16 17:40, Punit Agrawal wrote: Daniel Thompson writes: On 05/01/16 16:33, Javi Merino wrote: On Mon, Jan 04, 2016 at 11:22:26AM +, Daniel Thompson wrote: On 01/01/16 00:03, Leo Yan wrote: Hi Eduardo, Thanks for review. On Thu, Dec 31, 2015 at 09:21:26AM -0800, Eduardo Valenti

Re: [PATCH v2] thermal: re-calculate k_po/k_pu when update sustainable power

2016-01-05 Thread Punit Agrawal
Daniel Thompson writes: > On 05/01/16 16:33, Javi Merino wrote: >> On Mon, Jan 04, 2016 at 11:22:26AM +, Daniel Thompson wrote: >>> On 01/01/16 00:03, Leo Yan wrote: Hi Eduardo, Thanks for review. On Thu, Dec 31, 2015 at 09:21:26AM -0800, Eduardo Valentin wrote: >

Re: [PATCH v2] thermal: re-calculate k_po/k_pu when update sustainable power

2016-01-05 Thread Daniel Thompson
On 05/01/16 16:33, Javi Merino wrote: On Mon, Jan 04, 2016 at 11:22:26AM +, Daniel Thompson wrote: On 01/01/16 00:03, Leo Yan wrote: Hi Eduardo, Thanks for review. On Thu, Dec 31, 2015 at 09:21:26AM -0800, Eduardo Valentin wrote: On Wed, Dec 30, 2015 at 06:38:40PM +0800, Leo Yan wrote:

Re: [PATCH v2] thermal: re-calculate k_po/k_pu when update sustainable power

2016-01-05 Thread Javi Merino
On Mon, Jan 04, 2016 at 11:22:26AM +, Daniel Thompson wrote: > On 01/01/16 00:03, Leo Yan wrote: > >Hi Eduardo, > > > >Thanks for review. > > > >On Thu, Dec 31, 2015 at 09:21:26AM -0800, Eduardo Valentin wrote: > >>On Wed, Dec 30, 2015 at 06:38:40PM +0800, Leo Yan wrote: > >>>k_po/k_pu are in e

Re: [PATCH v2] thermal: re-calculate k_po/k_pu when update sustainable power

2016-01-05 Thread Javi Merino
On Fri, Jan 01, 2016 at 08:03:47AM +0800, Leo Yan wrote: > Hi Eduardo, > > Thanks for review. > > On Thu, Dec 31, 2015 at 09:21:26AM -0800, Eduardo Valentin wrote: > > On Wed, Dec 30, 2015 at 06:38:40PM +0800, Leo Yan wrote: > > > k_po/k_pu are in essence ratio values compared with sustainable po

Re: [PATCH v2] thermal: re-calculate k_po/k_pu when update sustainable power

2016-01-04 Thread Leo Yan
On Mon, Jan 04, 2016 at 11:22:26AM +, Daniel Thompson wrote: > On 01/01/16 00:03, Leo Yan wrote: > >Hi Eduardo, > > > >Thanks for review. > > > >On Thu, Dec 31, 2015 at 09:21:26AM -0800, Eduardo Valentin wrote: > >>On Wed, Dec 30, 2015 at 06:38:40PM +0800, Leo Yan wrote: > >>>k_po/k_pu are in e

Re: [PATCH v2] thermal: re-calculate k_po/k_pu when update sustainable power

2016-01-04 Thread Daniel Thompson
On 01/01/16 00:03, Leo Yan wrote: Hi Eduardo, Thanks for review. On Thu, Dec 31, 2015 at 09:21:26AM -0800, Eduardo Valentin wrote: On Wed, Dec 30, 2015 at 06:38:40PM +0800, Leo Yan wrote: k_po/k_pu are in essence ratio values compared with sustainable power. So when update sustainable power,

Re: [PATCH v2] thermal: re-calculate k_po/k_pu when update sustainable power

2015-12-31 Thread Leo Yan
Hi Eduardo, Thanks for review. On Thu, Dec 31, 2015 at 09:21:26AM -0800, Eduardo Valentin wrote: > On Wed, Dec 30, 2015 at 06:38:40PM +0800, Leo Yan wrote: > > k_po/k_pu are in essence ratio values compared with sustainable power. > > So when update sustainable power, we can recalculate k_po/k_pu

Re: [PATCH v2] thermal: re-calculate k_po/k_pu when update sustainable power

2015-12-31 Thread Eduardo Valentin
On Wed, Dec 30, 2015 at 06:38:40PM +0800, Leo Yan wrote: > k_po/k_pu are in essence ratio values compared with sustainable power. > So when update sustainable power, we can recalculate k_po/k_pu simply > with below formula: > >sustainable_power(new) > k_p(new) = ---

[PATCH v2] thermal: re-calculate k_po/k_pu when update sustainable power

2015-12-30 Thread Leo Yan
k_po/k_pu are in essence ratio values compared with sustainable power. So when update sustainable power, we can recalculate k_po/k_pu simply with below formula: sustainable_power(new) k_p(new) = -- * k_p(old) sustainable_power(old) Signed-off-