commit | bcfbc24314a79e40e1036cdea62f42b612981b1c | [log] [tgz] |
---|---|---|
author | Sharvil Nanavati <sharvil@google.com> | Wed Jan 22 00:04:45 2014 -0800 |
committer | Sharvil Nanavati <sharvil@google.com> | Wed Jan 22 17:29:02 2014 -0800 |
tree | 818e70deb35e9b0e3ba0547d074f29d5a7eb7f49 | |
parent | 5d3f77aab397e4496374708db21e71255992c46e [diff] |
Fix calls to pthread_setschedparam. When the scheduling priority is set to SCHED_NORMAL, you may not specify a non-zero priority. The current implementation does exactly that resulting in the call failing and returning EINVAL. This change ensures that a priority of 0 is set when the desired scheduler policy is set to SCHED_NORMAL. http://b/12304174 Change-Id: I945cae175b7bdd29dd8fc130ff6396b88ec33fcb