libprocessgroup: Remove ifdefery around SetTimerSlackAction::ExecuteForTask
This appears to have been due to the use of prctl, which apparently
caused issues for mac builds. Now that use of prctl has been removed, it
doesn't look like we need this anymore.
Fixes: 075008174 ("libprocessgroup: Remove prctl interface for setting timer slack")
Test: m
Bug: 372498744
Change-Id: I8a43951f30d7dd838591a8ba225d712742d7cd4a
This commit is contained in:
parent
2a278c3a2e
commit
96fc434b6c
1 changed files with 0 additions and 11 deletions
|
|
@ -188,9 +188,6 @@ bool ProfileAttribute::GetPathForUID(uid_t uid, std::string* path) const {
|
|||
return true;
|
||||
}
|
||||
|
||||
// To avoid issues in sdk_mac build
|
||||
#if defined(__ANDROID__)
|
||||
|
||||
bool SetTimerSlackAction::ExecuteForTask(pid_t tid) const {
|
||||
const auto file = StringPrintf("/proc/%d/timerslack_ns", tid);
|
||||
if (!WriteStringToFile(std::to_string(slack_), file)) {
|
||||
|
|
@ -205,14 +202,6 @@ bool SetTimerSlackAction::ExecuteForTask(pid_t tid) const {
|
|||
return true;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
bool SetTimerSlackAction::ExecuteForTask(int) const {
|
||||
return true;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
bool SetAttributeAction::WriteValueToFile(const std::string& path) const {
|
||||
if (!WriteStringToFile(value_, path)) {
|
||||
if (access(path.c_str(), F_OK) < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue