Commit Graph

18 Commits

Author SHA1 Message Date
bdccc05440 rework some (minor) things 2025-08-19 10:44:02 +02:00
2731f908b3 update makefile
makefile is now more compiler-agnostic and consistent with how one
expects a makefile to be built.
2025-08-11 15:44:40 +02:00
782e78760b update formatting 2025-08-11 15:34:48 +02:00
2bd68392cb write some documentation v1.0.1 2025-03-20 18:35:50 +01:00
64a4cd893e fix: when -v is not set, not all cpus are disabled
removed the else if check, and use a continue, if pattern instead
2025-03-20 18:30:46 +01:00
164c8654b9 fix: off-by-one due to <= instead of < 2025-03-20 15:29:45 +01:00
cc9f8feb61 bake OPT_LIST_CORES into OPT_VERBOSE 2025-03-20 15:24:01 +01:00
0a60702f9d allow to list active cpu cores
also use nproc to get an accurate amount instead of guessing
2025-03-20 15:23:13 +01:00
4812cbd3c0 use exit(1) instead of abort() 2025-03-20 14:48:22 +01:00
3375ce5531 fix: convert state character to integer 2025-03-20 13:59:41 +01:00
f3c58a3923 implement activation / deactivation 2025-03-20 13:59:10 +01:00
c123b2de11 fix: remove unused $(EXT) 2025-03-20 13:58:18 +01:00
03a844273c rename get/set -core to -cpu 2025-03-20 11:01:35 +01:00
cc55e01281 use abort() instead of exit(1) 2025-03-20 10:57:01 +01:00
b017f503eb divide main.c into multiple modules 2025-03-20 10:56:10 +01:00
99cb3398bf add cpu handling functions
add the functions which handle the /sys/devices/cpu/cpuX/online files
2025-03-20 10:39:21 +01:00
02a2472826 write some starting code to get basic option functionality 2025-03-19 21:09:26 +01:00
a982c884d3 initialize repository 2025-03-19 21:09:26 +01:00