Skip to contentSkip to conversation

exit_thread() speedups in x86 process.c

RFC Andi Kleen 1 participant 1 message Jul 3, 2005 2 messages not in the archive

lore
Share & tools
lore

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]

Andi Kleen

author
#2 lore raw
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.