From 583786175ecc2992ecb7e911e896ec705983d944 Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Mon, 5 Mar 2012 17:19:32 -0800 Subject: Remove references to sched_policy.h in RS As part of scheduling policy cleanup, removing some references to sched_policy.h and its APIs. Activity manager should be responsible for configuring scheduling policy, rather than leaving it up to each app. Change-Id: Iffe972799bf3fde090b1efdd3abce5141e4d261e --- libs/rs/rsContext.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'libs/rs/rsContext.cpp') 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 -#include #include #include @@ -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); } -- cgit v1.2.3-59-g8ed1b