Re: [RFC PATCH 1/4] ARM: OMAP2: DRA7: Modify optimize string comparisons in soc_is calls

2015-09-03 Thread Tony Lindgren
* Felipe Balbi [150902 05:34]: > On Wed, Sep 02, 2015 at 03:50:10PM +0530, Keerthy wrote: > > Currently everytime soc_is calls are made, firstly device tree nodes > > are parsed and then string comparisons are made to determine the > > soc version. Optimizing it to be done one time

Re: [RFC PATCH 1/4] ARM: OMAP2: DRA7: Modify optimize string comparisons in soc_is calls

2015-09-03 Thread Tony Lindgren
* Keerthy [150902 03:23]: > Currently everytime soc_is calls are made, firstly device tree nodes > are parsed and then string comparisons are made to determine the > soc version. Optimizing it to be done one time and store the result. > Use the stored value in all the subsequent

Re: [RFC PATCH 1/4] ARM: OMAP2: DRA7: Modify optimize string comparisons in soc_is calls

2015-09-03 Thread Keerthy
On Thursday 03 September 2015 09:45 PM, Tony Lindgren wrote: * Keerthy [150902 03:23]: Currently everytime soc_is calls are made, firstly device tree nodes are parsed and then string comparisons are made to determine the soc version. Optimizing it to be done one time and

[RFC PATCH 1/4] ARM: OMAP2: DRA7: Modify optimize string comparisons in soc_is calls

2015-09-02 Thread Keerthy
Currently everytime soc_is calls are made, firstly device tree nodes are parsed and then string comparisons are made to determine the soc version. Optimizing it to be done one time and store the result. Use the stored value in all the subsequent checks for soc_is calls. Signed-off-by: Keerthy

Re: [RFC PATCH 1/4] ARM: OMAP2: DRA7: Modify optimize string comparisons in soc_is calls

2015-09-02 Thread Felipe Balbi
On Wed, Sep 02, 2015 at 03:50:10PM +0530, Keerthy wrote: > Currently everytime soc_is calls are made, firstly device tree nodes > are parsed and then string comparisons are made to determine the > soc version. Optimizing it to be done one time and store the result. but is that really a problem ?