i2c/kernel i2c-proc.c
I think "unlikely" is a macro or a hint to GCC that the if condition being tested is unlikely to be true and therefore it should set the branch prediction bits in the code generated to improve performance for the more probable case of the expression being false...
Quoted 16 lines · [email protected] wrote:
Update of
/home/cvs/i2c/kernel
In directory mordac.netroedge.com:/tmp/cvs-serv18981Modified Files:
Tag: lk2-4 i2c-proc.cLog Message:
(mds) fix problem with multiple chips from same driver
found by Khali. This was caused by not mallocing space for and copying thectl_template.
This also fixes incomplete removal of the sysctl table when i2c-proc is rmmodded.
Also removeunlikely()calls sinceunlikely()is not available in kernel 2.4.9.
That's true.
But if it isn't defined until some kernel after 2.4.9 then we can't use it. Anyway there's no harm in taking it out.
Quoted 24 lines · Philip Pokorny
I think "unlikely" is a macro or a hint to GCC that the if condition being tested is unlikely to be true and therefore it should set the branch prediction bits in the code generated to improve performance for the more probable case of the expression being false...
Quoted 15 lines · [email protected] wrote:
Update of
/home/cvs/i2c/kernel
In directory mordac.netroedge.com:/tmp/cvs-serv18981Modified Files:
Tag: lk2-4
i2c-proc.cLog Message:
(mds) fix problem with multiple chips from same driver
found by Khali. This was caused by not mallocing space for and copying thectl_template.
This also fixes incomplete removal of the sysctl table when i2c-proc is rmmodded.
Also removeunlikely()calls sinceunlikely()is not available in kernel 2.4.9.
Quoted 6 lines
Log Message:
(mds) fix problem with multiple chips from same driver
found by Khali. This was caused by not mallocing space for and copying thectl_template.
This also fixes incomplete removal of the sysctl table when i2c-proc is rmmodded.
Tested, it's working OK now.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/