diff options
author | Rob Landley <rob@landley.net> | 2016-05-04 18:37:50 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-05-04 18:37:50 -0500 |
commit | 454eea52f806141137ff62abaf78302ea3d7c9c0 (patch) | |
tree | c65d7c1c84cc098e52af4c23b48716eafdef2ef4 /lib | |
parent | 5c8f3d7d2b03c0c6ba8ce244783cb88b29108a4d (diff) | |
download | toybox-454eea52f806141137ff62abaf78302ea3d7c9c0.tar.gz |
Simplify ps android scheduling policy fetch slightly.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/portability.c | 6 | ||||
-rw-r--r-- | lib/portability.h | 5 |
2 files changed, 2 insertions, 9 deletions
diff --git a/lib/portability.c b/lib/portability.c index f4354a86..78e500b1 100644 --- a/lib/portability.c +++ b/lib/portability.c @@ -92,9 +92,3 @@ int clearenv(void) return 0; } #endif - -#if !defined(__ANDROID__) -// No-op implementations of <cutils/sched_policy.h>. -int get_sched_policy(int tid, SchedPolicy *policy) { return 0; } -const char *get_sched_policy_name(SchedPolicy policy) { return "unknown"; } -#endif diff --git a/lib/portability.h b/lib/portability.h index 87258fa9..afe02c1c 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -273,7 +273,6 @@ pid_t xfork(void); #ifdef __ANDROID__ #include <cutils/sched_policy.h> #else -typedef int SchedPolicy; -int get_sched_policy(int tid, SchedPolicy *policy); -const char *get_sched_policy_name(SchedPolicy policy); +static inline int get_sched_policy(int tid, void *policy) {return 0;} +static inline char *get_sched_policy_name(int policy) {return "unknown";} #endif |