- 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:
parent
139b7550d9
commit
3bdbd658f1
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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__
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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__
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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__
|
||||
|
||||
|
@ -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__
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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__
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user