include/linux/compiler.h
[code:1]
/*
* Generic compiler-dependent macros required for kernel
* build go below this comment. Actual compiler/compiler version
* specific implementations come from the above header files
*/
this is because compiler want to do some optimizations.
for each if, there is a branch, cpu has branch predictor and try to choose one branch, if u know this rarely happen, then u can guide the cpu to choose a more possible branch. thus improve the performance and reduce the penalty of miss branch predictiooon.