Skip to content

Commit

Permalink
Only 20 threads support
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRTitor committed Mar 5, 2024
1 parent e517e31 commit f51dae3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions system/boot-kernel.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
# Recompiling the kernel with optimization
name = "AMD Patches";
patch = null; # no patch is needed, just apply the options
# enable only support for upto 20 CPU threads in the kernel
extraConfig = ''
NR_CPUS 20
'';
extraStructuredConfig = with lib.kernel; {
# enable compiler optimizations for AMD
MNATIVE_AMD = lib.mkForce yes;
Expand Down

0 comments on commit f51dae3

Please sign in to comment.