patch-2.4.10 linux/arch/sparc64/kernel/traps.c
Next file: linux/arch/sparc64/lib/blockops.S
Previous file: linux/arch/sparc64/kernel/trampoline.S
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Thu Sep 20 14:11:57 2001
- Orig file:
v2.4.9/linux/arch/sparc64/kernel/traps.c
- Orig date:
Thu Apr 12 12:10:25 2001
diff -u --recursive --new-file v2.4.9/linux/arch/sparc64/kernel/traps.c linux/arch/sparc64/kernel/traps.c
@@ -1,4 +1,4 @@
-/* $Id: traps.c,v 1.76 2001/04/03 13:46:31 davem Exp $
+/* $Id: traps.c,v 1.78 2001/09/14 19:49:32 kanoj Exp $
* arch/sparc64/kernel/traps.c
*
* Copyright (C) 1995,1997 David S. Miller (davem@caip.rutgers.edu)
@@ -31,6 +31,7 @@
#include <asm/estate.h>
#include <asm/chafsr.h>
#include <asm/psrcompat.h>
+#include <asm/processor.h>
#ifdef CONFIG_KMOD
#include <linux/kmod.h>
#endif
@@ -515,21 +516,6 @@
"i" (ASI_PHYS_USE_EC));
}
-#ifdef CONFIG_SMP
-unsigned long cheetah_tune_scheduling(void)
-{
- unsigned long tick1, tick2, raw;
-
- __asm__ __volatile__("rd %%tick, %0" : "=r" (tick1));
- cheetah_flush_ecache();
- __asm__ __volatile__("rd %%tick, %0" : "=r" (tick2));
-
- raw = (tick2 - tick1);
-
- return (raw - (raw >> 2));
-}
-#endif
-
/* Unfortunately, the diagnostic access to the I-cache tags we need to
* use to clear the thing interferes with I-cache coherency transactions.
*
@@ -1431,7 +1417,7 @@
do {
/* Bogus frame pointer? */
if (fp < (task_base + sizeof(struct task_struct)) ||
- fp >= (task_base + (2 * PAGE_SIZE)))
+ fp >= (task_base + THREAD_SIZE))
break;
rw = (struct reg_window *)fp;
pc = rw->ins[7];
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)