diff options
author | jhb <jhb@FreeBSD.org> | 2003-08-04 20:32:45 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-08-04 20:32:45 +0000 |
commit | e4889cd4700681f73e3e73980497783d0c28415a (patch) | |
tree | fd4fd8a4bc6d0874da5819255d7a16d649642bbc /sys | |
parent | 52adb98aefd6ee43674dc6ccd40f9644daa3db66 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/alpha/alpha/critical.c | 12 | ||||
-rw-r--r-- | sys/alpha/include/critical.h | 2 | ||||
-rw-r--r-- | sys/amd64/amd64/critical.c | 11 | ||||
-rw-r--r-- | sys/amd64/include/critical.h | 2 | ||||
-rw-r--r-- | sys/ia64/ia64/critical.c | 11 | ||||
-rw-r--r-- | sys/ia64/include/critical.h | 2 | ||||
-rw-r--r-- | sys/powerpc/include/critical.h | 2 | ||||
-rw-r--r-- | sys/powerpc/powerpc/critical.c | 11 | ||||
-rw-r--r-- | sys/sparc64/include/critical.h | 2 | ||||
-rw-r--r-- | sys/sparc64/sparc64/critical.c | 11 |
10 files changed, 0 insertions, 66 deletions
diff --git a/sys/alpha/alpha/critical.c b/sys/alpha/alpha/critical.c index 9995cf0..ba436c3 100644 --- a/sys/alpha/alpha/critical.c +++ b/sys/alpha/alpha/critical.c @@ -31,17 +31,5 @@ cpu_critical_fork_exit(void) struct thread *td; td = curthread; - td->td_critnest = 1; td->td_md.md_savecrit = ALPHA_PSL_IPL_0; } - -/* - * cpu_thread_link() - thread linkup, initialize machine-dependant fields - */ -void -cpu_thread_link(struct thread *td) -{ - - td->td_md.md_savecrit = 0; -} - diff --git a/sys/alpha/include/critical.h b/sys/alpha/include/critical.h index dc5119c..3f13156 100644 --- a/sys/alpha/include/critical.h +++ b/sys/alpha/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/amd64/amd64/critical.c b/sys/amd64/amd64/critical.c index b667c8a..46d2e9d 100644 --- a/sys/amd64/amd64/critical.c +++ b/sys/amd64/amd64/critical.c @@ -28,16 +28,5 @@ cpu_critical_fork_exit(void) struct thread *td; td = curthread; - td->td_critnest = 1; td->td_md.md_savecrit = read_rflags() | PSL_I; } - -/* - * cpu_thread_link() - thread linkup, initialize machine-dependant fields - */ -void -cpu_thread_link(struct thread *td) -{ - - td->td_md.md_savecrit = 0; -} diff --git a/sys/amd64/include/critical.h b/sys/amd64/include/critical.h index dc5119c..3f13156 100644 --- a/sys/amd64/include/critical.h +++ b/sys/amd64/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/ia64/ia64/critical.c b/sys/ia64/ia64/critical.c index 5272b80..3704d9e 100644 --- a/sys/ia64/ia64/critical.c +++ b/sys/ia64/ia64/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 = (ia64_get_psr() | IA64_PSR_I); } - -/* - * cpu_thread_link() - thread linkup, initialize machine-dependant fields - */ -void -cpu_thread_link(struct thread *td) -{ - - td->td_md.md_savecrit = 0; -} diff --git a/sys/ia64/include/critical.h b/sys/ia64/include/critical.h index 265edab..4f6969d 100644 --- a/sys/ia64/include/critical.h +++ b/sys/ia64/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/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; -} - 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; } |