11dc28b794587be22c90a97070d928f94586db638Glenn Kasten/*
21dc28b794587be22c90a97070d928f94586db638Glenn Kasten * Copyright (C) 2012 The Android Open Source Project
31dc28b794587be22c90a97070d928f94586db638Glenn Kasten *
41dc28b794587be22c90a97070d928f94586db638Glenn Kasten * Licensed under the Apache License, Version 2.0 (the "License");
51dc28b794587be22c90a97070d928f94586db638Glenn Kasten * you may not use this file except in compliance with the License.
61dc28b794587be22c90a97070d928f94586db638Glenn Kasten * You may obtain a copy of the License at
71dc28b794587be22c90a97070d928f94586db638Glenn Kasten *
81dc28b794587be22c90a97070d928f94586db638Glenn Kasten *      http://www.apache.org/licenses/LICENSE-2.0
91dc28b794587be22c90a97070d928f94586db638Glenn Kasten *
101dc28b794587be22c90a97070d928f94586db638Glenn Kasten * Unless required by applicable law or agreed to in writing, software
111dc28b794587be22c90a97070d928f94586db638Glenn Kasten * distributed under the License is distributed on an "AS IS" BASIS,
121dc28b794587be22c90a97070d928f94586db638Glenn Kasten * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
131dc28b794587be22c90a97070d928f94586db638Glenn Kasten * See the License for the specific language governing permissions and
141dc28b794587be22c90a97070d928f94586db638Glenn Kasten * limitations under the License.
151dc28b794587be22c90a97070d928f94586db638Glenn Kasten */
161dc28b794587be22c90a97070d928f94586db638Glenn Kasten
171dc28b794587be22c90a97070d928f94586db638Glenn Kasten#ifndef _ANDROID_SCHEDULING_POLICY_SERVICE_H
181dc28b794587be22c90a97070d928f94586db638Glenn Kasten#define _ANDROID_SCHEDULING_POLICY_SERVICE_H
191dc28b794587be22c90a97070d928f94586db638Glenn Kasten
201dc28b794587be22c90a97070d928f94586db638Glenn Kastennamespace android {
211dc28b794587be22c90a97070d928f94586db638Glenn Kasten
221dc28b794587be22c90a97070d928f94586db638Glenn Kasten// Request elevated priority for thread tid, whose thread group leader must be pid.
231dc28b794587be22c90a97070d928f94586db638Glenn Kasten// The priority parameter is currently restricted to either 1 or 2.
241dc28b794587be22c90a97070d928f94586db638Glenn Kastenint requestPriority(pid_t pid, pid_t tid, int32_t prio);
251dc28b794587be22c90a97070d928f94586db638Glenn Kasten
261dc28b794587be22c90a97070d928f94586db638Glenn Kasten}   // namespace android
271dc28b794587be22c90a97070d928f94586db638Glenn Kasten
281dc28b794587be22c90a97070d928f94586db638Glenn Kasten#endif  // _ANDROID_SCHEDULING_POLICY_SERVICE_H
29