mirror of https://github.com/BOINC/boinc.git
Remove deprecated Android background scheduling (bg_non_interactive)
Refer #2549
This commit is contained in:
parent
4a83c33908
commit
629e42a389
|
@ -1078,18 +1078,6 @@ int ACTIVE_TASK::start(bool test) {
|
|||
perror("setpriority");
|
||||
}
|
||||
#endif
|
||||
#ifdef ANDROID
|
||||
// Android has its own notion of background scheduling
|
||||
if (!high_priority) {
|
||||
FILE* f = fopen("/dev/cpuctl/apps/bg_non_interactive/tasks", "w");
|
||||
if (!f) {
|
||||
msg_printf(NULL, MSG_INFO, "Can't open /dev/cpuctl/apps/bg_non_interactive/tasks");
|
||||
} else {
|
||||
fprintf(f, "%d", getpid());
|
||||
fclose(f);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#if HAVE_SCHED_SETSCHEDULER && defined(SCHED_IDLE) && defined (__linux__)
|
||||
if (!high_priority) {
|
||||
struct sched_param sp;
|
||||
|
|
Loading…
Reference in New Issue