diff options
| author | 2012-03-07 07:16:46 -0800 | |
|---|---|---|
| committer | 2012-03-07 07:16:46 -0800 | |
| commit | ff249c0dc814dfc22d8575ec1ef3af03831dfaaa (patch) | |
| tree | c4ffca660bdb60a540aa3cefd323ec3e153c8fb6 /libs/rs/rsContext.cpp | |
| parent | 091ca2d5fb0592304358a9dfcd7931de68bb9983 (diff) | |
| parent | 583786175ecc2992ecb7e911e896ec705983d944 (diff) | |
Merge "Remove references to sched_policy.h in RS"
Diffstat (limited to 'libs/rs/rsContext.cpp')
| -rw-r--r-- | libs/rs/rsContext.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp index 95ac76e84fd9..0f3cea78c308 100644 --- a/libs/rs/rsContext.cpp +++ b/libs/rs/rsContext.cpp @@ -26,7 +26,6 @@ #include <cutils/properties.h> -#include <cutils/sched_policy.h> #include <sys/syscall.h> #include <string.h> @@ -354,17 +353,7 @@ void Context::setPriority(int32_t p) { // This is probably not what we want for something the user is actively // looking at. mThreadPriority = p; -#if 0 - SchedPolicy pol = SP_FOREGROUND; - if (p > 0) { - pol = SP_BACKGROUND; - } - if (!set_sched_policy(mNativeThreadId, pol)) { - // success; reset the priority as well - } -#else setpriority(PRIO_PROCESS, mNativeThreadId, p); -#endif mHal.funcs.setPriority(this, mThreadPriority); } |