This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository enlightenment.

View the commit online.

commit e60bcd5b94ae59b5e7446c30f167e3cfd9e1f0c4
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Tue Dec 3 07:44:26 2024 +0000

    cpufreq - handle no powersave gov - only perf and schedutil
---
 src/bin/system/e_system_cpufreq.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/bin/system/e_system_cpufreq.c b/src/bin/system/e_system_cpufreq.c
index 05ff93030..98b195893 100644
--- a/src/bin/system/e_system_cpufreq.c
+++ b/src/bin/system/e_system_cpufreq.c
@@ -180,14 +180,14 @@ sys_cpu_pwr_governor_set(int v)
   FILE *f;
   char **strs, *p;
   char *wrstr[4] = { NULL };
-  const char *lv0[]    = { "powersave",   "conservative", "ondemand",
-                           "interactive", "performance",  NULL };
-  const char *lv1[]    = { "conservative", "ondemand",    "interactive",
-                           "powersave",    "performance", NULL };
-  const char *lv2[]    = { "interactive",   "ondemand",  "conservative",
-                           "performance", "powersave", NULL };
-  const char *lv3[]    = { "performance",   "interactive",  "ondemand",
-                           "conservative", "powersave", NULL };
+  const char *lv0[]    = { "powersave",    "conservative", "ondemand",
+                           "interactive",  "schedutil",    "performance", NULL };
+  const char *lv1[]    = { "conservative", "ondemand",     "interactive",
+                           "schedutil",    "powersave",    "performance", NULL };
+  const char *lv2[]    = { "interactive",  "ondemand",     "conservative",
+                           "schedutil",    "performance",  "powersave", NULL };
+  const char *lv3[]    = { "performance",  "interactive",  "ondemand",
+                           "conservative", "schedutil",    "powersave", NULL };
 
   // get avail prefs
   f = fopen("/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors",
@@ -263,13 +263,13 @@ _cb_cpufreq_pwr_get(void *data EINA_UNUSED, const char *params EINA_UNUSED)
 #else
   int v;
   const char *lv0[]
-    = { "default",     "power", "balance_power", "balance_performance",
+    = { "default", "power", "balance_power", "balance_performance",
         "performance", NULL };
   int lv0vals[] = { 0, 0, 1, 2, 3 };
   const char *lv1[]
-    = { "schedutil",     "userspace", "powersave", "conservative",
+    = { "userspace", "powersave", "schedutil", "conservative",
         "ondemand", "interactive", "performance", NULL };
-  int lv1vals[] = { 0, 0, 0, 1, 1, 2, 3 };
+  int lv1vals[] = { 0, 0, 1, 1, 1, 2, 3 };
 
   v = map_strings(
     "/sys/devices/system/cpu/cpu0/cpufreq/energy_performance_preference", lv0,

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to