From 629e42a3896126f0db3ece754f124e321770cac2 Mon Sep 17 00:00:00 2001 From: Jia Yuan Lo Date: Thu, 8 Oct 2020 17:17:23 +0800 Subject: [PATCH] Remove deprecated Android background scheduling (bg_non_interactive) Refer #2549 --- client/app_start.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/client/app_start.cpp b/client/app_start.cpp index aba2ece0dd..702d3f7e9d 100644 --- a/client/app_start.cpp +++ b/client/app_start.cpp @@ -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;