blob: 2922962bab40ddc16e248c39cfe735c4289e5fa5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
diff --git a/kernel/softlockup.c b/kernel/softlockup.c
index 4b493f6..ada1fcd 100644
--- a/kernel/softlockup.c
+++ b/kernel/softlockup.c
@@ -187,7 +187,9 @@ static int watchdog(void *__bind_cpu)
{
struct sched_param param = { .sched_priority = MAX_RT_PRIO-1 };
+ rcu_read_lock();
sched_setscheduler(current, SCHED_FIFO, ¶m);
+ rcu_read_unlock();
/* initialize timestamp */
__touch_softlockup_watchdog();
|