[PATCH] Input:evdev - Fix to avoid the execution of same instruction in every iteration of for loop.

2015-05-20 Thread Shailendra Verma
Here in for loop the instruction "len / sizeof(compat_long_t)" is used as a terminating condition which is executing (being computed) in every iteration of for loop. Below is the armv7-a architecture assembly code with similar for loop having the same instruction in condition.Note that the instruct

Re: [PATCH] Input:evdev - Fix to avoid the execution of same instruction in every iteration of for loop.

2015-05-20 Thread Dmitry Torokhov
Hi Shailendra, On Thu, May 21, 2015 at 12:35:46AM +0530, Shailendra Verma wrote: > Here in for loop the instruction "len / sizeof(compat_long_t)" is used > as a terminating condition which is executing (being computed) in every > iteration of for loop. Below is the armv7-a architecture assembly co