schedule: Skip save_fp_regs when the process ends
Change-Id: I32ff71a0dfcd7196d2c9e6cc1d68210933470bbb Fujitsu: POSTK_DEBUG_ARCH_DEP_106 Refs: #1354
This commit is contained in:
committed by
Masamichi Takagi
parent
a4b83dc6d4
commit
de0e07f29e
@@ -3416,15 +3416,11 @@ void schedule(void)
|
||||
}
|
||||
|
||||
/* Take care of floating point registers except for idle process */
|
||||
#ifdef POSTK_DEBUG_ARCH_DEP_66 /* Fixed not to save fp_regs when the process ends */
|
||||
if (prev && (prev != &cpu_local_var(idle) && prev->status != PS_EXITED)) {
|
||||
/* Not to save fp_regs when the process ends */
|
||||
if (prev && (prev != &cpu_local_var(idle)
|
||||
&& prev->status != PS_EXITED)) {
|
||||
save_fp_regs(prev);
|
||||
}
|
||||
#else /* POSTK_DEBUG_ARCH_DEP_66 */
|
||||
if (prev && prev != &cpu_local_var(idle)) {
|
||||
save_fp_regs(prev);
|
||||
}
|
||||
#endif /* POSTK_DEBUG_ARCH_DEP_66 */
|
||||
|
||||
if (next != &cpu_local_var(idle)) {
|
||||
restore_fp_regs(next);
|
||||
|
||||
Reference in New Issue
Block a user