uninline init_waitqueue_*() functions
In-Reply-To: <[email protected]>
Quoted 3 lines · Ingo Molnar
The rough rule of thumb for inlining is that anything that is larger than one C statement is probably too large for inlining. (but even 1-line statements might be too fat at times)
x86-64 software optimization guide says:
For functions that create fewer than 25 machine instructions once inlined, it is likely that the function call overhead is close to, or more than, the time spent executing the function body. In these cases, function inlining is recommended.
Of course you need to consider whether the code is speed-critical to begin with.
Signature · 2 lines
Chuck "You can't read a newspaper if you can't read." --George W. Bush