- 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.
This commit is contained in:
John Baldwin 2003-08-04 20:32:45 +00:00
parent 139b7550d9
commit 3bdbd658f1
10 changed files with 0 additions and 66 deletions

View File

@ -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;
}

View File

@ -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__

View File

@ -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;
}

View File

@ -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__

View File

@ -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;
}

View File

@ -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__

View File

@ -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__

View File

@ -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;
}

View File

@ -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__

View File

@ -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;
}