svn commit: r254451 - head/sys/arm/arm
Andrew Turner
andrew at FreeBSD.org
Sat Aug 17 14:52:19 UTC 2013
Author: andrew
Date: Sat Aug 17 14:52:19 2013
New Revision: 254451
URL: http://svnweb.freebsd.org/changeset/base/254451
Log:
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.
Modified:
head/sys/arm/arm/undefined.c
Modified: head/sys/arm/arm/undefined.c
==============================================================================
--- head/sys/arm/arm/undefined.c Sat Aug 17 14:42:40 2013 (r254450)
+++ head/sys/arm/arm/undefined.c Sat Aug 17 14:52:19 2013 (r254451)
@@ -65,9 +65,6 @@ __FBSDID("$FreeBSD$");
#ifdef KDB
#include <sys/kdb.h>
#endif
-#ifdef FAST_FPE
-#include <sys/acct.h>
-#endif
#include <vm/vm.h>
#include <vm/vm_extern.h>
@@ -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
}
More information about the svn-src-head
mailing list