sched: Don't report SCHED_FLAG_SUGOV in sched_getattr()
[linux-2.6-microblaze.git] / kernel / sched / core.c
index 6c562ad..314f70d 100644 (file)
@@ -7530,6 +7530,7 @@ SYSCALL_DEFINE4(sched_getattr, pid_t, pid, struct sched_attr __user *, uattr,
                kattr.sched_priority = p->rt_priority;
        else
                kattr.sched_nice = task_nice(p);
+       kattr.sched_flags &= SCHED_FLAG_ALL;
 
 #ifdef CONFIG_UCLAMP_TASK
        /*