From c6af85cce237f80e7711f8059dcdab3c91a92313 Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Sat, 17 Aug 2013 14:52:19 +0000 Subject: [PATCH] Remove unused FPE code. This is not enabled anywhere as it is the only file I can find containing FAST_FPE. It appears this would not work as want_resched is not defined anywhere. --- sys/arm/arm/undefined.c | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/sys/arm/arm/undefined.c b/sys/arm/arm/undefined.c index 9a2634a0fe70..41f2f6420ac2 100644 --- a/sys/arm/arm/undefined.c +++ b/sys/arm/arm/undefined.c @@ -65,9 +65,6 @@ __FBSDID("$FreeBSD$"); #ifdef KDB #include #endif -#ifdef FAST_FPE -#include -#endif #include #include @@ -89,9 +86,6 @@ __FBSDID("$FreeBSD$"); #endif static int gdb_trapper(u_int, u_int, struct trapframe *, int); -#ifdef FAST_FPE -extern int want_resched; -#endif LIST_HEAD(, undefined_handler) undefined_handlers[MAX_COPROCS]; @@ -294,33 +288,5 @@ undefinedinstruction(trapframe_t *frame) panic("Undefined instruction in kernel.\n"); } -#ifdef FAST_FPE - /* Optimised exit code */ - { - - /* - * Check for reschedule request, at the moment there is only - * 1 ast so this code should always be run - */ - - if (want_resched) { - /* - * We are being preempted. - */ - preempt(0); - } - - /* Invoke MI userret code */ - mi_userret(td); - -#if 0 - l->l_priority = l->l_usrpri; - - curcpu()->ci_schedstate.spc_curpriority = l->l_priority; -#endif - } - -#else userret(td, frame); -#endif }