| 1 | https://android.googlesource.com/platform/system/core/+/84421d8475ca8262a914b3875ed110fc6187ee74 |
| 2 | |
| 3 | Add ioprio values directly. |
| 4 | |
| 5 | The ioprio.h header is not a uapi header, so remove it's use and |
| 6 | add the two values that this code needs to use. |
| 7 | |
| 8 | Bug: 30072483 |
| 9 | Change-Id: I5c8b6f40bd60a43f50ac26792f96d2fa3f6db020 |
| 10 | |
| 11 | diff -u -r ../libcutils-orig/iosched_policy.c ./iosched_policy.c |
| 12 | --- ../libcutils-orig/iosched_policy.c 2017-06-28 13:45:36.296011839 +0200 |
| 13 | +++ ./iosched_policy.c 2017-06-28 13:45:47.307888245 +0200 |
| 14 | @@ -24,7 +24,8 @@ |
| 15 | #include <cutils/iosched_policy.h> |
| 16 | |
| 17 | #if defined(__ANDROID__) |
| 18 | -#include <linux/ioprio.h> |
| 19 | +#define IOPRIO_WHO_PROCESS (1) |
| 20 | +#define IOPRIO_CLASS_SHIFT (13) |
| 21 | #include <sys/syscall.h> |
| 22 | #define __android_unused |
| 23 | #else |