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
30
test/issues/1354/1354_check.patch
Normal file
30
test/issues/1354/1354_check.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
diff --git arch/arm64/kernel/cpu.c arch/arm64/kernel/cpu.c
|
||||
index d749024..759fc4e 100644
|
||||
--- arch/arm64/kernel/cpu.c
|
||||
+++ arch/arm64/kernel/cpu.c
|
||||
@@ -1504,6 +1504,10 @@ out:
|
||||
void
|
||||
save_fp_regs(struct thread *thread)
|
||||
{
|
||||
+ /* THIS IS PATCH FOR TEST */
|
||||
+ if (thread->status == PS_EXITED) {
|
||||
+ kprintf("%s: thread is going to exit. (NOT_FIXED)\n", __func__);
|
||||
+ }
|
||||
if (thread == &cpu_local_var(idle)) {
|
||||
return;
|
||||
}
|
||||
diff --git arch/x86_64/kernel/cpu.c arch/x86_64/kernel/cpu.c
|
||||
index 2ba5bd3..7512daa 100644
|
||||
--- arch/x86_64/kernel/cpu.c
|
||||
+++ arch/x86_64/kernel/cpu.c
|
||||
@@ -1725,6 +1725,10 @@ out:
|
||||
void
|
||||
save_fp_regs(struct thread *thread)
|
||||
{
|
||||
+ /* THIS IS PATCH FOR TEST */
|
||||
+ if (thread->status == PS_EXITED) {
|
||||
+ kprintf("%s: thread is going to exit. (NOT_FIXED)\n", __func__);
|
||||
+ }
|
||||
if (check_and_allocate_fp_regs(thread) != 0) {
|
||||
// alloc error
|
||||
return;
|
||||
Reference in New Issue
Block a user