Last active
February 25, 2023 11:56
-
-
Save csrutil/f842eaca9959c7e6b0dc431e0567bda7 to your computer and use it in GitHub Desktop.
disable_cpu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| disable_cpu() { | |
| cpuid=$1 | |
| flag=$2 | |
| echo $flag > "/sys/devices/system/cpu/cpu$cpuid/online" | |
| } | |
| disable_cpu 6 1 | |
| disable_cpu 7 1 | |
| disable_cpu 8 1 | |
| disable_cpu 9 1 | |
| disable_cpu 10 1 | |
| disable_cpu 11 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment