about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--apple/macbook-air/4/default.nix5
-rw-r--r--common/cpu/intel/sandy-bridge/default.nix9
2 files changed, 13 insertions, 1 deletions
diff --git a/apple/macbook-air/4/default.nix b/apple/macbook-air/4/default.nix
index 146289de41e1..181a099799a1 100644
--- a/apple/macbook-air/4/default.nix
+++ b/apple/macbook-air/4/default.nix
@@ -1,7 +1,10 @@
 { lib, ... }:
 
 {
-  imports = [ ../. ];
+  imports = [
+    ../.
+    ../../../common/cpu/intel/sandy-bridge
+  ];
 
   boot.kernelParams = [
     "acpi_backlight=vendor"
diff --git a/common/cpu/intel/sandy-bridge/default.nix b/common/cpu/intel/sandy-bridge/default.nix
new file mode 100644
index 000000000000..682815cee473
--- /dev/null
+++ b/common/cpu/intel/sandy-bridge/default.nix
@@ -0,0 +1,9 @@
+{
+  imports = [ ../. ];
+
+  # Enables RC6, RC6p and RC6pp.
+  # Last two are only available on Sandy Bridge CPUs (circa 2011).
+  boot.kernelParams = [
+    "i915.enable_rc6=7"
+  ];
+}