powerpc: Simplify _nodrop variants of FPU and vector register saves
No need for an extra temporary. It doesn't even help with readability. Suggested by: kib (almost 2 years ago)
This commit is contained in:
parent
7a25fb9963
commit
8cf2c8ed64
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=358928
@ -183,14 +183,11 @@ save_vec(struct thread *td)
|
||||
void
|
||||
save_vec_nodrop(struct thread *td)
|
||||
{
|
||||
struct thread *vtd;
|
||||
struct pcb *pcb;
|
||||
int i;
|
||||
|
||||
vtd = PCPU_GET(vecthread);
|
||||
if (td == vtd) {
|
||||
if (td == PCPU_GET(vecthread))
|
||||
save_vec_int(td);
|
||||
}
|
||||
|
||||
pcb = td->td_pcb;
|
||||
|
||||
|
@ -168,12 +168,7 @@ save_vec(struct thread *td)
|
||||
void
|
||||
save_vec_nodrop(struct thread *td)
|
||||
{
|
||||
struct thread *vtd;
|
||||
|
||||
vtd = PCPU_GET(vecthread);
|
||||
if (td != vtd) {
|
||||
return;
|
||||
}
|
||||
|
||||
save_vec_int(td);
|
||||
if (td == PCPU_GET(vecthread))
|
||||
save_vec_int(td);
|
||||
}
|
||||
|
@ -204,12 +204,7 @@ save_fpu(struct thread *td)
|
||||
void
|
||||
save_fpu_nodrop(struct thread *td)
|
||||
{
|
||||
struct thread *ftd;
|
||||
|
||||
ftd = PCPU_GET(fputhread);
|
||||
if (td != ftd) {
|
||||
return;
|
||||
}
|
||||
|
||||
save_fpu_int(td);
|
||||
if (td == PCPU_GET(fputhread))
|
||||
save_fpu_int(td);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user