migrate: Don't migrate on in-kernel interrupt

Change-Id: I9c07e0d633687ce232ec3cd0c80439ca2e856293
Refs: #1555
This commit is contained in:
Ken Sato
2020-12-11 13:25:57 +09:00
committed by Masamichi Takagi
parent 583319125a
commit 93dafc5f79
10 changed files with 555 additions and 8 deletions

View File

@ -344,10 +344,13 @@ void handle_interrupt_gicv3(struct pt_regs *regs)
//irqflags = ihk_mc_spinlock_lock(&v->runq_lock);
/* For migration by IPI or by timesharing */
if (v->flags &
(CPU_FLAG_NEED_MIGRATE | CPU_FLAG_NEED_RESCHED)) {
v->flags &= ~CPU_FLAG_NEED_RESCHED;
do_check = 1;
if (v->flags & CPU_FLAG_NEED_RESCHED) {
if (v->flags & CPU_FLAG_NEED_MIGRATE && !from_user) {
// Don't migrate on K2K schedule
} else {
v->flags &= ~CPU_FLAG_NEED_RESCHED;
do_check = 1;
}
}
//ihk_mc_spinlock_unlock(&v->runq_lock, irqflags);