RE: RE: [PATCH] Input: Change msleep to usleep_range for small msecs

2016-12-22 Thread ZHANG Xu (BST/ESA3.1)
; linux-in...@vger.kernel.org; linux-kernel@vger.kernel.org Cc: Aniroop Mathur ; SAMUEL SEQUEIRA ; Rahul Mahale Subject: RE: RE: [PATCH] Input: Change msleep to usleep_range for small msecs Dear Mr. Albert Zhang, Thank you for your confirmation! Yes, I think usleep_range(2000, 2100) is better

RE: RE: [PATCH] Input: Change msleep to usleep_range for small msecs

2016-12-01 Thread ZHANG Xu (BST/ESA3.1)
...@vger.kernel.org; linux-kernel@vger.kernel.org Cc: Aniroop Mathur ; SAMUEL SEQUEIRA ; Rahul Mahale Subject: RE: RE: [PATCH] Input: Change msleep to usleep_range for small msecs Dear Mr. Albert Zhang, Thank you for your confirmation! Yes, I think usleep_range(2000, 2100) is better than

RE: RE: [PATCH] Input: Change msleep to usleep_range for small msecs

2016-12-01 Thread Aniroop Mathur
Dear Mr. Albert Zhang, Thank you for your confirmation! Yes, I think usleep_range(2000, 2100) is better than usleep_range(2000, 2000) because delta time will allow the kernel to batch the processes who need to wake up around same time and generate single interrupt to wake up all of them. So this