summaryrefslogtreecommitdiffstats
path: root/arch/mips/math-emu/ieee754xcpt.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2014-04-16 00:47:59 +0200
committerRalf Baechle <ralf@linux-mips.org>2014-05-21 11:12:47 +0200
commitcae55066cb1ce3f8572ddddbd3ec3c54b973a89c (patch)
tree91b106168432448ebb07766cc4e88bf778739036 /arch/mips/math-emu/ieee754xcpt.c
parentf80cc08d78556bdc66bf0b75ec412688d8ec6907 (diff)
downloadop-kernel-dev-cae55066cb1ce3f8572ddddbd3ec3c54b973a89c.zip
op-kernel-dev-cae55066cb1ce3f8572ddddbd3ec3c54b973a89c.tar.gz
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>
Diffstat (limited to 'arch/mips/math-emu/ieee754xcpt.c')
-rw-r--r--arch/mips/math-emu/ieee754xcpt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/math-emu/ieee754xcpt.c b/arch/mips/math-emu/ieee754xcpt.c
index 96716711..005bbb1 100644
--- a/arch/mips/math-emu/ieee754xcpt.c
+++ b/arch/mips/math-emu/ieee754xcpt.c
@@ -28,6 +28,7 @@
* Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved.
*************************************************************************/
+#include <linux/compiler.h>
#include <linux/kernel.h>
#include "ieee754.h"
@@ -40,7 +41,7 @@ static const char *const rtnames[] = {
"sp", "dp", "xp", "si", "di"
};
-void ieee754_xcpt(struct ieee754xctx *xcp)
+void __cold ieee754_xcpt(struct ieee754xctx *xcp)
{
printk(KERN_DEBUG "floating point exception in \"%s\", type=%s\n",
xcp->op, rtnames[xcp->rt]);
OpenPOWER on IntegriCloud