sched/deadline: Fix rt runtime corruption when dl fails its global constraints
[deliverable/linux.git] / kernel / sched / core.c
index 043e2a13b8b95bc7918cfa6aea2d07ef10f5850d..4b3b6887c6b153d9f6a0ef08bc50f7322ceeef6e 100644 (file)
@@ -7804,7 +7804,7 @@ static int sched_rt_global_constraints(void)
 }
 #endif /* CONFIG_RT_GROUP_SCHED */
 
-static int sched_dl_global_constraints(void)
+static int sched_dl_global_validate(void)
 {
        u64 runtime = global_rt_runtime();
        u64 period = global_rt_period();
@@ -7905,11 +7905,11 @@ int sched_rt_handler(struct ctl_table *table, int write,
                if (ret)
                        goto undo;
 
-               ret = sched_rt_global_constraints();
+               ret = sched_dl_global_validate();
                if (ret)
                        goto undo;
 
-               ret = sched_dl_global_constraints();
+               ret = sched_rt_global_constraints();
                if (ret)
                        goto undo;
 
This page took 0.028242 seconds and 5 git commands to generate.