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

Commit e3ffd133 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Don't duplicate `struct sched_attr`.

Bug: http://b/289090109
Test: treehugger
Change-Id: I88711743d62687dfa480fa76fbb96763fdf03347
parent f7752a2f
Loading
Loading
Loading
Loading
+1 −14
Original line number Diff line number Diff line
@@ -65,6 +65,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>
@@ -6425,20 +6426,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);