summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/cpu.c4
-rwxr-xr-xconfigure3
2 files changed, 0 insertions, 7 deletions
diff --git a/components/cpu.c b/components/cpu.c
index bbebdfc..a78f17a 100644
--- a/components/cpu.c
+++ b/components/cpu.c
@@ -14,11 +14,7 @@
unsigned int cores = 0;
uintmax_t freq, freq_sum = 0;
-#ifdef N_CORES
- for (cores = 0; cores < N_CORES;) {
-#else
while (1) {
-#endif
sprintf(cpu, "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_cur_freq", cores);
if (pscanf(cpu, "%ju", &freq) != 1)
break;
diff --git a/configure b/configure
index f133f15..4664f2b 100755
--- a/configure
+++ b/configure
@@ -1,9 +1,6 @@
#!/bin/sh
git checkout config.h
-git checkout components/cpu.c
-
-sed -i "2i #define N_CORES $(nproc --all)" components/cpu.c
for BAT in /sys/class/power_supply/BAT*
do