summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-08-04 20:32:45 +0000
committerjhb <jhb@FreeBSD.org>2003-08-04 20:32:45 +0000
commite4889cd4700681f73e3e73980497783d0c28415a (patch)
treefd4fd8a4bc6d0874da5819255d7a16d649642bbc /sys/sparc64
parent52adb98aefd6ee43674dc6ccd40f9644daa3db66 (diff)
downloadFreeBSD-src-e4889cd4700681f73e3e73980497783d0c28415a.zip
FreeBSD-src-e4889cd4700681f73e3e73980497783d0c28415a.tar.gz
- Since td_critnest is now initialized in MI code, it doesn't have to be
set in cpu_critical_fork_exit() anymore. - As far as I can tell, cpu_thread_link() has never been used, not even when it was originally added, so remove it.
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/include/critical.h2
-rw-r--r--sys/sparc64/sparc64/critical.c11
2 files changed, 0 insertions, 13 deletions
diff --git a/sys/sparc64/include/critical.h b/sys/sparc64/include/critical.h
index eee9914..13e783c 100644
--- a/sys/sparc64/include/critical.h
+++ b/sys/sparc64/include/critical.h
@@ -8,7 +8,6 @@
* cpu_critical_enter() - inlined
* cpu_critical_exit() - inlined
* cpu_critical_fork_exit() - prototyped
- * cpu_thread_link() - prototyped
* related support functions residing
* in <arch>/<arch>/critical.c - prototyped
*
@@ -24,7 +23,6 @@ __BEGIN_DECLS
* Prototypes - see <arch>/<arch>/critical.c
*/
void cpu_critical_fork_exit(void);
-void cpu_thread_link(struct thread *td);
#ifdef __GNUC__
diff --git a/sys/sparc64/sparc64/critical.c b/sys/sparc64/sparc64/critical.c
index cd5f014..fdc9424 100644
--- a/sys/sparc64/sparc64/critical.c
+++ b/sys/sparc64/sparc64/critical.c
@@ -29,16 +29,5 @@ cpu_critical_fork_exit(void)
struct thread *td;
td = curthread;
- td->td_critnest = 1;
- td->td_md.md_savecrit = 0;
-}
-
-/*
- * cpu_thread_link() - thread linkup, initialize machine-dependant fields
- */
-void
-cpu_thread_link(struct thread *td)
-{
-
td->td_md.md_savecrit = 0;
}
OpenPOWER on IntegriCloud