diff options
| author | 2024-04-05 23:21:08 +0000 | |
|---|---|---|
| committer | 2024-04-05 23:21:08 +0000 | |
| commit | 19692ed75a88e40ce6e4faae83b8d177900cb6bf (patch) | |
| tree | 5c49bcc964b3086869b2f81d7467e2ca3efef1e2 /services/surfaceflinger/SurfaceFlinger.cpp | |
| parent | ab6300a9316a4fe1bc6ebbf54005e97cafb78952 (diff) | |
| parent | 4ec480f98f023116eda676a5a40fac9038808b49 (diff) | |
Merge "Don't duplicate `struct sched_attr`." into main am: e16986ea78 am: 4ec480f98f
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2640606
Change-Id: I789c43f31298ca39d609273e2705363a8cd98863
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
| -rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index a6a0ca6d6e..21f1cb3e4a 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -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); |