Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19692ed7 authored by Elliott Hughes's avatar Elliott Hughes Committed by Automerger Merge Worker
Browse files

Merge "Don't duplicate `struct sched_attr`." into main am: e16986ea am: 4ec480f9

parents ab6300a9 4ec480f9
Loading
Loading
Loading
Loading
+1 −14
Original line number Diff line number Diff line
@@ -72,6 +72,7 @@
#include <gui/TraceUtils.h>
#include <hidl/ServiceManagement.h>
#include <layerproto/LayerProtoParser.h>
#include <linux/sched/types.h>
#include <log/log.h>
#include <private/android_filesystem_config.h>
#include <private/gui/SyncFeatures.h>
@@ -7807,20 +7808,6 @@ status_t SurfaceFlinger::setSchedAttr(bool enabled) {
        return NO_ERROR;
    }

    // Currently, there is no wrapper in bionic: b/183240349.
    struct sched_attr {
        uint32_t size;
        uint32_t sched_policy;
        uint64_t sched_flags;
        int32_t sched_nice;
        uint32_t sched_priority;
        uint64_t sched_runtime;
        uint64_t sched_deadline;
        uint64_t sched_period;
        uint32_t sched_util_min;
        uint32_t sched_util_max;
    };

    sched_attr attr = {};
    attr.size = sizeof(attr);