On 30/05/2013 19:12, Stephen Hemminger wrote: > Both logging and calls to panic are never in the critical path. > Use the GCC attribute cold to mark these functions as cold, > which generates more optimised code. > > Signed-off-by: Stephen Hemminger<shemminger at vyatta.com> Reviewed-by: Vincent Jardin <vincent.jardin at 6wind.com>
It does not hurt to move both to a cold section. TODO: some other init and setup functions should be cold too.