Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Aug 2013 14:52:19 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r254451 - head/sys/arm/arm
Message-ID:  <201308171452.r7HEqJcF073973@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308171452.r7HEqJcF073973>