exit_thread() speedups in x86 process.c
A message that is not in the archive (sent off-list or not yet received): 200507012258_MC3-1-A340-3A81@compuserve.com.suse.lists.linux.kernel
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · Denis Vlasenko
80/20 rule says that 80% of code runs 20% of time,
thus we need only__fast. Everything else will be by default__slow. (IOW: normal .text section is__slow, no need to add another one).
__slow could include noinline. With unit-at-a-time gcc tends otherwise to inline too aggressively. With __fast that would not be possible.
-Andi
P.S.: gcc 4.x already supports .cold even on the basic block level. However I believe it's only active with profile feedback, which is not practical for kernel builds.