Re: [PATCH 4.19 123/133] thermal/drivers/cpufreq_cooling: Fix wrong frequency converted from power

2020-07-22 Thread Viresh Kumar
On 22-07-20, 09:43, Pavel Machek wrote: > OTOH the changelog is extremely confusing, because code would not work > on the table presented there as an example. Yeah, maybe I should have updated it too, just missed it completely :( -- viresh

Re: [PATCH 4.19 123/133] thermal/drivers/cpufreq_cooling: Fix wrong frequency converted from power

2020-07-22 Thread Pavel Machek
Hi! > > > commit 371a3bc79c11b707d7a1b7a2c938dc3cc042fffb upstream. > > > > > > The function cpu_power_to_freq is used to find a frequency and set the > > > cooling device to consume at most the power to be converted. For example, > > > if the power to be converted is 80mW, and the em table is as

Re: [PATCH 4.19 123/133] thermal/drivers/cpufreq_cooling: Fix wrong frequency converted from power

2020-07-21 Thread Viresh Kumar
On 21-07-20, 13:43, Pavel Machek wrote: > On Mon 2020-07-20 17:37:50, Greg Kroah-Hartman wrote: > > From: Finley Xiao > > > > commit 371a3bc79c11b707d7a1b7a2c938dc3cc042fffb upstream. > > > > The function cpu_power_to_freq is used to find a frequency and set the > > cooling device to consume at

Re: [PATCH 4.19 123/133] thermal/drivers/cpufreq_cooling: Fix wrong frequency converted from power

2020-07-21 Thread Pavel Machek
Hi! > From: Finley Xiao > > commit 371a3bc79c11b707d7a1b7a2c938dc3cc042fffb upstream. > > The function cpu_power_to_freq is used to find a frequency and set the > cooling device to consume at most the power to be converted. For example, > if the power to be converted is 80mW, and the em table i

Re: [PATCH 4.19 123/133] thermal/drivers/cpufreq_cooling: Fix wrong frequency converted from power

2020-07-21 Thread Pavel Machek
On Mon 2020-07-20 17:37:50, Greg Kroah-Hartman wrote: > From: Finley Xiao > > commit 371a3bc79c11b707d7a1b7a2c938dc3cc042fffb upstream. > > The function cpu_power_to_freq is used to find a frequency and set the > cooling device to consume at most the power to be converted. For example, > if the

[PATCH 4.19 123/133] thermal/drivers/cpufreq_cooling: Fix wrong frequency converted from power

2020-07-20 Thread Greg Kroah-Hartman
From: Finley Xiao commit 371a3bc79c11b707d7a1b7a2c938dc3cc042fffb upstream. The function cpu_power_to_freq is used to find a frequency and set the cooling device to consume at most the power to be converted. For example, if the power to be converted is 80mW, and the em table is as follow. struct