Commit Graph

11 Commits

Author SHA1 Message Date
82a33791de fix: cpu.c was not coded correctly; some edge cases and using static-width integers 2025-08-19 10:44:02 +02:00
782e78760b update formatting 2025-08-11 15:34:48 +02:00
2bd68392cb write some documentation 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
f3c58a3923 implement activation / deactivation 2025-03-20 13:59:10 +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