MIPS: math-emu: Mark exception handling functions as __cold.
Optimizes the code flow and shaves of half a percent of the math-emu
code size.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
diff --git a/arch/mips/math-emu/ieee754sp.c b/arch/mips/math-emu/ieee754sp.c
index 15d1e36..dd3ecd6 100644
--- a/arch/mips/math-emu/ieee754sp.c
+++ b/arch/mips/math-emu/ieee754sp.c
@@ -23,6 +23,7 @@
* ########################################################################
*/
+#include <linux/compiler.h>
#include "ieee754sp.h"
@@ -45,7 +46,7 @@
}
-ieee754sp ieee754sp_xcpt(ieee754sp r, const char *op, ...)
+ieee754sp __cold ieee754sp_xcpt(ieee754sp r, const char *op, ...)
{
struct ieee754xctx ax;
@@ -61,7 +62,7 @@
return ax.rv.sp;
}
-ieee754sp ieee754sp_nanxcpt(ieee754sp r, const char *op, ...)
+ieee754sp __cold ieee754sp_nanxcpt(ieee754sp r, const char *op, ...)
{
struct ieee754xctx ax;