]> Freerunner's - dotfiles.git/commitdiff
add a cheap amd-prefcore script
authorAndre Ramnitz <tux.rising@gmail.com>
Tue, 14 May 2024 23:29:40 +0000 (01:29 +0200)
committerAndre Ramnitz <tux.rising@gmail.com>
Sun, 18 Aug 2024 16:18:53 +0000 (18:18 +0200)
local/bin/prefcore-v2 [new file with mode: 0755]

diff --git a/local/bin/prefcore-v2 b/local/bin/prefcore-v2
new file mode 100755 (executable)
index 0000000..62faef4
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+for i in $(ls -1 /sys/devices/system/cpu | grep -E cpu\[0-9\]);
+    do printf $i\ && cat /sys/devices/system/cpu/$i/acpi_cppc/highest_perf; done |\
+    sort -k2 -r | head -n12
+
+