Re: [PATCH] fix the issue that the tick_nohz_get_sleep_length() function could return a negative value

2021-02-19 Thread Frederic Weisbecker
On Wed, Jan 20, 2021 at 11:49:38PM +, Zhou Ti (x2019cwm) wrote: > Fix the issue that the tick_nohz_get_sleep_length() function could return a > negative value. > > The variable "dev->next_event" has a small possibility to be smaller than > the variable "now" during running, which would

Re: [PATCH] fix the issue that the tick_nohz_get_sleep_length() function could return a negative value

2021-02-01 Thread Frederic Weisbecker
On Wed, Jan 20, 2021 at 11:49:38PM +, Zhou Ti (x2019cwm) wrote: > Fix the issue that the tick_nohz_get_sleep_length() function could return a > negative value. > > The variable "dev->next_event" has a small possibility to be smaller than > the variable "now" during running, which would

[PATCH] fix the issue that the tick_nohz_get_sleep_length() function could return a negative value

2021-01-20 Thread Zhou Ti (x2019cwm)
Fix the issue that the tick_nohz_get_sleep_length() function could return a negative value. The variable "dev->next_event" has a small possibility to be smaller than the variable "now" during running, which would result in a negative value of "*delta_next". The variable "next_event" also has a

Re: [PATCH] fix the issue that the tick_nohz_get_sleep_length() function could return a negative value

2021-01-20 Thread Randy Dunlap
On 1/20/21 10:58 AM, Zhou Ti (x2019cwm) wrote: > Fix the issue that the tick_nohz_get_sleep_length() function could return > a negative value. > > The variable "next_event" has a small possibility to be smaller than the > variable "now" during running. Since both the menu idle governor and the >

[PATCH] fix the issue that the tick_nohz_get_sleep_length() function could return a negative value

2021-01-20 Thread Zhou Ti (x2019cwm)
Fix the issue that the tick_nohz_get_sleep_length() function could return a negative value. The variable "next_event" has a small possibility to be smaller than the variable "now" during running. Since both the menu idle governor and the teo idle governor use u64 to store the return value of the