summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-10-31 06:59:15 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-10-31 06:59:15 -0700
commitc0961b67cce19466a1e678e58f9f51819fed74e0 (patch)
treeff40a76da9b3a847e2fbd0c6f4555c32200a64b8 /kernel
parent508ca01d9d7a655a4e59e698a0f2a193e5335939 (diff)
parent6385a475e0118abc099566ba82d8c8a59c283ff6 (diff)
Merge "sched/hmp: Disable interrupts when resetting all task stats"
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched/hmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/hmp.c b/kernel/sched/hmp.c
index 50a6d8e0d4d4..1d55e226196f 100644
--- a/kernel/sched/hmp.c
+++ b/kernel/sched/hmp.c
@@ -3106,9 +3106,9 @@ static void reset_all_task_stats(void)
read_lock(&tasklist_lock);
do_each_thread(g, p) {
- raw_spin_lock(&p->pi_lock);
+ raw_spin_lock_irq(&p->pi_lock);
reset_task_stats(p);
- raw_spin_unlock(&p->pi_lock);
+ raw_spin_unlock_irq(&p->pi_lock);
} while_each_thread(g, p);
read_unlock(&tasklist_lock);
}