diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-09-03 17:07:07 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2010-09-07 11:19:11 -0700 |
commit | 84bb52ed614f3a13370c923a8bc2a8b7c6db8d30 (patch) | |
tree | 343bb945db493f71b75b55f99ed1da0a8424d4c3 /core/jni | |
parent | 69717ccd13bb5568b912701ab39d603cfa7091cc (diff) | |
download | frameworks_base-84bb52ed614f3a13370c923a8bc2a8b7c6db8d30.zip frameworks_base-84bb52ed614f3a13370c923a8bc2a8b7c6db8d30.tar.gz frameworks_base-84bb52ed614f3a13370c923a8bc2a8b7c6db8d30.tar.bz2 |
Add system property to turn off scheduling groups.
Do this:
adb shell setprop debug.sys.noschedgroups 1
Change-Id: I6e06a74205fd45ee1526ce71fe33944465d39984
Diffstat (limited to 'core/jni')
-rw-r--r-- | core/jni/android_util_Process.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/jni/android_util_Process.cpp b/core/jni/android_util_Process.cpp index 7c99271..7dfb716 100644 --- a/core/jni/android_util_Process.cpp +++ b/core/jni/android_util_Process.cpp @@ -261,8 +261,7 @@ void android_os_Process_setProcessGroup(JNIEnv* env, jobject clazz, int pid, jin continue; } - if (set_sched_policy(t_pid, (grp == ANDROID_TGROUP_BG_NONINTERACT) ? - SP_BACKGROUND : SP_FOREGROUND)) { + if (androidSetThreadSchedulingGroup(t_pid, grp) != NO_ERROR) { signalExceptionForGroupError(env, clazz, errno); break; } |