Re: [Resend][PATCH] drivers/thermal: optimize the for circle to run a bit fast

2020-10-27 Thread Daniel Lezcano
On 27/10/2020 02:19, Bernard wrote: > > From: Daniel Lezcano > Date: 2020-10-27 02:35:18 > To: Bernard ,Zhang Rui ,Amit Kucheria > ,linux...@vger.kernel.org,linux-kernel@vger.kernel.org > Cc: opensource.ker...@vivo.com > Subject: Re: [Resend][PATCH] drivers/thermal: optimize the for circle to

Re:Re: [Resend][PATCH] drivers/thermal: optimize the for circle to run a bit fast

2020-10-26 Thread Bernard
From: Daniel Lezcano Date: 2020-10-27 02:35:18 To: Bernard ,Zhang Rui ,Amit Kucheria ,linux...@vger.kernel.org,linux-kernel@vger.kernel.org Cc: opensource.ker...@vivo.com Subject: Re: [Resend][PATCH] drivers/thermal: optimize the for circle to run a bit fast>On 26/10/2020 02:49, Bernard

Re: [Resend][PATCH] drivers/thermal: optimize the for circle to run a bit fast

2020-10-26 Thread Daniel Lezcano
On 26/10/2020 02:49, Bernard wrote: > Function thermal_zone_device_register, in the for circle, if the > first if branch set the count bit in tz->trips_disabled, there is > no need to set in the other if branch again. > This change is to make the code run a bit fast and readable. > >

[Resend][PATCH] drivers/thermal: optimize the for circle to run a bit fast

2020-10-25 Thread Bernard
Function thermal_zone_device_register, in the for circle, if the first if branch set the count bit in tz->trips_disabled, there is no need to set in the other if branch again. This change is to make the code run a bit fast and readable. Signed-off-by: Bernard Zhao ---

[PATCH] drivers/thermal: optimize the for circle to run a bit fast

2020-10-19 Thread Bernard Zhao
Function thermal_zone_device_register, in the for circle, if the first if branch set the count bit in tz->trips_disabled, there is no need to set in the other if branch again. This change is to make the code run a bit fast and readable. Signed-off-by: Bernard Zhao ---