summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
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/powerpc
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/powerpc')
-rw-r--r--sys/powerpc/include/critical.h2
-rw-r--r--sys/powerpc/powerpc/critical.c11
2 files changed, 0 insertions, 13 deletions
diff --git a/sys/powerpc/include/critical.h b/sys/powerpc/include/critical.h
index ce85c67..b1bb077 100644
--- a/sys/powerpc/include/critical.h
+++ b/sys/powerpc/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/powerpc/powerpc/critical.c b/sys/powerpc/powerpc/critical.c
index 873498c..f003669 100644
--- a/sys/powerpc/powerpc/critical.c
+++ b/sys/powerpc/powerpc/critical.c
@@ -27,16 +27,5 @@ cpu_critical_fork_exit(void)
{
struct thread *td = curthread;
- td->td_critnest = 1;
td->td_md.md_savecrit = (mfmsr() | PSL_EE | PSL_RI);
}
-
-/*
- * 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