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

Commit 0fa1b7d3 authored by San Mehat's avatar San Mehat Committed by Android Git Automerger
Browse files

am f647a3c8: am 3cd5b66b: libcutils: Dont include kernel header + add defines

Merge commit 'f647a3c8'

* commit 'f647a3c8':
  libcutils: Dont include kernel header + add defines
parents db0d48e0 f647a3c8
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -22,10 +22,17 @@
#include <errno.h>
#include <fcntl.h>
#include <sched.h>
#include <linux/sched.h>

#include <cutils/sched_policy.h>

#ifndef SCHED_NORMAL
  #define SCHED_NORMAL 0
#endif

#ifndef SCHED_BATCH
  #define SCHED_BATCH 3
#endif

static int add_tid_to_cgroup(int tid, const char *grp_name)
{
    int fd;