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 79d01d6c0020ce90812e355dfee5df8aec759c80
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Wed Jan 8 11:42:27 2025 +0000

    cpufreq - remove commented out test code
---
 src/modules/cpufreq/cpf_cpu.c | 43 -------------------------------------------
 1 file changed, 43 deletions(-)

diff --git a/src/modules/cpufreq/cpf_cpu.c b/src/modules/cpufreq/cpf_cpu.c
index c6465764b..4e480e0d6 100644
--- a/src/modules/cpufreq/cpf_cpu.c
+++ b/src/modules/cpufreq/cpf_cpu.c
@@ -384,46 +384,3 @@ cpu_perf_update(Cpu_Perf *cp)
       cp->cur.num = num;
     }
 }
-
-/*
-int main(int argc, char **argv)
-{
-  Cpu_Perf *cp = cpu_perf_add();
-
-  if (!cp)
-    {
-      fprintf(stderr, "ERR: can't find cpu stats\n");
-      return -1;
-    }
-  for (;;)
-    {
-      long i;
-
-      cpu_perf_update(cp);
-      for (i = 0; i < cp->cur.num; i++)
-        {
-#define D(_f) (cp->cur.counters[i].fields[_f] - cp->prev.counters[i].fields[_f])
-          long cpu_perc =
-          DELTA(CPU_USER) +
-          DELTA(CPU_SYSTEM) +
-          DELTA(CPU_NICE) +
-          DELTA(CPU_IRQ) +
-          DELTA(CPU_SOFTIRQ);
-          long diff = cp->cur.counters[i].total - cp->prev.counters[i].total;
-          if (diff > 0)
-            {
-              int cpu = cp->cur.counters[i].cpu;
-
-              if (cpu >= 0)
-                {
-                  cpu_perc = 100 * cpu_perc / diff;
-                  printf("CPU %4i - %3i%% |   %1.2fGhz\n", cpu, (int)cpu_perc,
-                         (double)cp->cur.freqinfo[cpu].cur / 1000000.0);
-                }
-            }
-        }
-      usleep(250000);
-    }
-  return 0;
-}
-*/

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

Reply via email to