summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/common-config.nix
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2019-07-22 13:22:16 -0400
committerAaron Andersen <aaron@fosslib.net>2019-07-23 06:23:56 -0400
commit3d1905e3f5d8cf79928f02300a007cb492369b97 (patch)
treec93469a23b079a92cbbe22e2974735ad07d5c4e1 /pkgs/os-specific/linux/kernel/common-config.nix
parent0c9acb1926e2ef4db880be08ba1d7ca2821c69be (diff)
downloadnixpkgs-3d1905e3f5d8cf79928f02300a007cb492369b97.tar
nixpkgs-3d1905e3f5d8cf79928f02300a007cb492369b97.tar.gz
nixpkgs-3d1905e3f5d8cf79928f02300a007cb492369b97.tar.bz2
nixpkgs-3d1905e3f5d8cf79928f02300a007cb492369b97.tar.lz
nixpkgs-3d1905e3f5d8cf79928f02300a007cb492369b97.tar.xz
nixpkgs-3d1905e3f5d8cf79928f02300a007cb492369b97.tar.zst
nixpkgs-3d1905e3f5d8cf79928f02300a007cb492369b97.zip
linux/kernel: enable automatic cpu hotplug support
Diffstat (limited to 'pkgs/os-specific/linux/kernel/common-config.nix')
-rw-r--r--pkgs/os-specific/linux/kernel/common-config.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix
index 855f854b111..b392dc853d3 100644
--- a/pkgs/os-specific/linux/kernel/common-config.nix
+++ b/pkgs/os-specific/linux/kernel/common-config.nix
@@ -699,11 +699,13 @@ let
       PREEMPT_VOLUNTARY = yes;
 
     } // optionalAttrs (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "aarch64-linux") {
-      # Enable memory hotplug support
-      # Allows you to dynamically add & remove memory to a VM client running NixOS without requiring a reboot
+      # Enable CPU/memory hotplug support
+      # Allows you to dynamically add & remove CPUs/memory to a VM client running NixOS without requiring a reboot
+      ACPI_HOTPLUG_CPU = yes;
       ACPI_HOTPLUG_MEMORY = yes;
       MEMORY_HOTPLUG = yes;
       MEMORY_HOTREMOVE = yes;
+      HOTPLUG_CPU = yes;
       MIGRATION = yes;
       SPARSEMEM = yes;